[PATCH] D63817: [clangd] No longer getting template instantiations from header files in Main AST.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 1 01:03:57 PDT 2019
hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.
Looks good, please update the patch description (in git, and phabricator), mentioning why the previous solution won't work.
================
Comment at: clang-tools-extra/clangd/ClangdUnit.cpp:71
+ auto &SM = D->getASTContext().getSourceManager();
+ if (!SM.isWrittenInMainFile(SM.getExpansionLoc(D->getLocation()))) {
continue;
----------------
nit: remove the `{}`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63817/new/
https://reviews.llvm.org/D63817
More information about the cfe-commits
mailing list