[cfe-dev] Tips for optimising libclang

Sean Silva silvas at purdue.edu
Wed Apr 3 11:30:34 PDT 2013

On Wed, Apr 3, 2013 at 5:09 AM, Miguel Guedes <miguel.a.guedes at gmail.com>wrote:

> On Tue, 2013-04-02 at 20:51 +0200, Tobias Grosser wrote:
> > This largely depends on the machine. On my (fast) laptop, the
> > clang_complete example file in examples/boost.cpp takes 0.046 seconds.
> >
> > It would be really great to investigate this issue to get rid of the
> > need to reparse.
> After having looked into clang_complete (thanks for the tip, Tobias!) I
> came to the conclusion that I'd coded my code completion logic wrong. I
> was under the impression that before invoking clang_codeCompleteAt one
> had to reparse the TU but it turns out that's not the case - all one has
> to do is feed the source file contents in a CXUnsavedFile struct.
Can you suggest a specific improvement to the documentation that would help
avoid this issue in the future?

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130403/66a9e84f/attachment.html>

More information about the cfe-dev mailing list