[cfe-dev] Adding indexing support to Clangd

Marc-André Laperle via cfe-dev cfe-dev at lists.llvm.org
Thu May 18 13:33:59 PDT 2017


Yeah, it sounds like a good approach to tackle header caching a bit later. "Precompiled preamble" looks promising so we can keep this in mind as we go.


Cheers,

Marc-André

________________________________
From: Doug Schaefer <dschaefer at blackberry.com>
Sent: Thursday, May 18, 2017 10:44:18 AM
To: Marc-André Laperle; via cfe-dev
Cc: zeratul976 at hotmail.com; zaks.anna at gmail.com; Dániel Krupp; Zoltan Porkoláb; Marton Csordas
Subject: Re: Adding indexing support to Clangd

On 2017-05-17, 6:38 PM, "Marc-André Laperle"
<marc-andre.laperle at ericsson.com> wrote:
>  - For header caching, I wonder if it is possible to reuse the
>precompiled header support in Clang. There would be some logic that would
>decide whether or not a precompiled header could be used depending on the
>preprocessing context (same macro definitions, etc).

I¹m not certain header cacheing is needed right away. We did it in the CDT
because our parsers were fairly slow and indexing a project took a very
long time. I have hope that clang would be faster. At the very least, you
would want cacheing to be optional so you need to be able to work without
it. But make sure you have the architecture to graft it in later.

In CDT we cheated a lot to gain performance and the cost of accuracy. The
results are still very good so its an interesting balancing act.

Doug Schaefer
Eclipse CDT Project Lead

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170518/f82f2235/attachment.html>


More information about the cfe-dev mailing list