[clangd-dev] [cfe-dev] RFC: Symbol index for Clangd design proposal

Sam McCall via clangd-dev clangd-dev at lists.llvm.org
Mon Jul 16 11:13:17 PDT 2018


+Haojian, who is working on references :-)

There's some overlap for sure, though the majority is independent. I think
Haojian's plan includes these (in some overlapping order)
1) add an interface for the index to provide xrefs to clangd
2) implement LSP references features in terms of that interface + the AST
for local references
3) implement collection of xrefs
4) implement xref storage/serving in the memory index <-- this part
overlaps with the index proposal
5) (implement xref storage/serving in google's internal index)

I'd guess the most likely thing is that the initial xref serving will be a
fairly naive implementation that will fit in well with the current naive
index :-) and then it can converge with the new index in a few months when
both features are a bit more fleshed out.

On Mon, Jul 16, 2018 at 7:50 PM Doug Schaefer via clangd-dev <
clangd-dev at lists.llvm.org> wrote:

> Thanks Kirill, this looks very promising.
>
>
>
> My first question is a high level one. Clangd still lacks a
> referencesProvider. I don’t see mention of it in your document, but it
> seems a natural outcome of having a high performance index as long as it
> has reference location information.
>
>
>
> Is that something you’re considering?
>
>
>
> Thanks!
>
> Doug.
>
>
>
>
>
> *From:* cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] *On Behalf Of *Kirill
> Bobyrev via cfe-dev
> *Sent:* Monday, July 16, 2018 6:04 AM
> *To:* clangd-dev at lists.llvm.org
> *Cc:* Peter Collingbourne via cfe-dev <cfe-dev at lists.llvm.org>
> *Subject:* [cfe-dev] RFC: Symbol index for Clangd design proposal
>
>
>
> Dear LLVM Community,
>
>
>
> over the past few weeks, we (Google C++ Language Tools Team) have been
> working on the efficient symbol index proposal for Clangd. The goal is to
> improve overall Clangd performance by reducing the latency of different
> kinds of symbol search queries, such as the ones used for code completion.
> The plan is to follow the proposed design and replace existing
> implementation by the end of September.
>
>
>
> We are happy to get feedback and comments on the proposal: suggestions are
> welcome!
>
>
>
> The link to design document:
> https://docs.google.com/document/d/1C-A6PGT6TynyaX4PXyExNMiGmJ2jL1UwV91Kyx11gOI/edit?usp=sharing
>
>
>
> Kind regards,
>
> Kirill Bobyrev
> _______________________________________________
> clangd-dev mailing list
> clangd-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20180716/700d5cb6/attachment.html>


More information about the clangd-dev mailing list