[PATCH] D50847: [clangd] Add callbacks on parsed AST in addition to parsed preambles
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 16 09:06:42 PDT 2018
ilya-biryukov created this revision.
ilya-biryukov added a reviewer: hokein.
Herald added subscribers: arphaman, jkorous, MaskRay, ioeric, javed.absar.
Will be used for updating the dynamic index on updates to the open files.
Currently we collect only information coming from the preamble
AST. This has a bunch of limitations:
- 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).
This patch only adds the new callback, actually updating the index
will be added in a follow-up patch.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50847
Files:
clangd/ClangdServer.cpp
clangd/ClangdServer.h
clangd/TUScheduler.cpp
clangd/TUScheduler.h
unittests/clangd/TUSchedulerTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50847.161038.patch
Type: text/x-patch
Size: 14273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180816/9e30cb5d/attachment-0001.bin>
More information about the cfe-commits
mailing list