[PATCH] D50847: [clangd] Add callbacks on parsed AST in addition to parsed preambles
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 16 09:36:59 PDT 2018
ioeric added a comment.
> Dynamic index misses important information from the body of the file, e.g. locations of definitions
> XRefs cannot be collected at all, since we can only obtain full information for the current file (preamble is parsed with skipped function bodies, therefore not reliable).
These seem to be known limitations of the dynamic index. The dynamic index, in general, only handles things that are in headers; information in the main file can usually be obtained from Sema/AST (outside of the index). For example, definition/xrefs locations can be merged from index and the AST.
> This patch only adds the new callback, actually updating the index will be added in a follow-up patch.
How do we plan to merge symbols from the preamble callback and the main file callback? The current FileIndex only allows swapping all symbols.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50847
More information about the cfe-commits
mailing list