[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
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
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/ClangdUnit.cpp | ||
---|---|---|
75 ↗ | (On Diff #206643) | 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. |
Comment Actions
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 | ||
---|---|---|
71 ↗ | (On Diff #206685) | nit: remove the {} |