[clangd] No longer getting template instantiations from header files in Main AST. Added another check to DeclTrackingASTConsumer to check that a Decl is actually in the main file.
Details
- Reviewers
hokein ilya-biryukov sammccall - Commits
- rG881aab4dc3df: [clangd] No longer getting template instantiations from header files in Main…
rCTE364747: [clangd] No longer getting template instantiations from header files in Main…
rL364747: [clangd] No longer getting template instantiations from header files in Main…
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 33944 Build 33943: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/ClangdUnit.cpp | ||
---|---|---|
75 | Removed the D->isFromASTFile because this if actually covers that as well. Don't know what to do about comments though as it is not only specific to that case. |
Looks good, please update the patch description (in git, and phabricator), mentioning why the previous solution won't work.
clang-tools-extra/clangd/ClangdUnit.cpp | ||
---|---|---|
72 | nit: remove the {} |
NIT: This include is redundant, maybe remove?
Probably added by accident.