Nope, I parse the first time, and then reparse everytime something changes in my text buffer (because I syntax color based on what libclang gives me). And it worked fine (and fast) with clang_defaultEditingTranslationUnitOptions for clang_parseTranslationUnit and clang_defaultReparseOptions for clang_reparseTranslationUnit. Until I saw that clang_codeCompleteAt doesnt work with anything else than CXTranslationUnit_None.<div>
<br></div><div><div><br><div class="gmail_quote">On Mon, Aug 20, 2012 at 2:01 AM, don hinton <span dir="ltr"><<a href="mailto:don.hinton@gmx.com" target="_blank">don.hinton@gmx.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 Aug 19, 2012, at 18:11, Klemen Forstneric <<a href="mailto:brucewayne97@gmail.com">brucewayne97@gmail.com</a>> wrote:<br>
<br>
> Hey everyone!<br>
><br>
> I'm having trouble finding the optimal performance settings for parsing/reparsing the translation unit. At this moment I'm using CXTranslationUnit_None for both parsing and reparsing the translation unit, because it seems that as soon as I turn on default settings for parse/reparse (clang_defaultEditingTranslationUnitOptions and clang_defaultReparseOptions respectively) code completion stops giving me the right results. Sure I could keep using CXTranslationUnit_None but as soon as I include additional headers to my source file, the whole thing becomes too slow.<br>
<br>
</div>Are you saving the tu then reloading it, or parsing it from scratch everytime?<br>
<div class="im"><br>
><br>
> Is this a bug or is this how It's supposed to work? Please give me some guidance.<br>
><br>
> Thanks in advance,<br>
> Klemen<br>
</div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div></div>