[PATCH] D77644: [clangd] Handle additional includes while parsing ASTs
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 00:29:29 PDT 2020
kadircet added a comment.
this is ready for review now, to explain the flow:
While creating a patch we also record remaining includes from Baseline left in Modified, as the new ones will be put into the patch already.
That way ParsedAST can keep track of latest state of the preamble + main file includes, with the patched includes ending up in the latter.
It doesn't modify include depths, as it is only used by code completion. If need be we can prune the tree to get rid of deleted includes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77644/new/
https://reviews.llvm.org/D77644
More information about the cfe-commits
mailing list