<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 3, 2013 at 5:09 AM, Miguel Guedes <span dir="ltr"><<a href="mailto:miguel.a.guedes@gmail.com" target="_blank">miguel.a.guedes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 2013-04-02 at 20:51 +0200, Tobias Grosser wrote:<br>
> This largely depends on the machine. On my (fast) laptop, the<br>
> clang_complete example file in examples/boost.cpp takes 0.046 seconds.<br>
><br>
> It would be really great to investigate this issue to get rid of the<br>
> need to reparse.<br>
<br>
</div>After having looked into clang_complete (thanks for the tip, Tobias!) I<br>
came to the conclusion that I'd coded my code completion logic wrong. I<br>
was under the impression that before invoking clang_codeCompleteAt one<br>
had to reparse the TU but it turns out that's not the case - all one has<br>
to do is feed the source file contents in a CXUnsavedFile struct.<br>
<br></blockquote><div><br></div><div style>Can you suggest a specific improvement to the documentation that would help avoid this issue in the future?</div><div style><br></div><div style>-- Sean Silva </div></div></div>
</div>