[clangd] No longer getting template instantiations from header files in Main AST.
authorJohan Vikstrom <jvikstrom@google.com>
Mon, 1 Jul 2019 11:49:01 +0000 (11:49 +0000)
committerJohan Vikstrom <jvikstrom@google.com>
Mon, 1 Jul 2019 11:49:01 +0000 (11:49 +0000)
commit881aab4dc3dfbf8109f55b67f0db86b3a36a9bc7
tree590c1915fb454c4081b9b272bbbc6594ba47f69c
parent92e78b7bedb987b1fcb7f25207df8a7381d9d7a6
[clangd] No longer getting template instantiations from header files in Main AST.

Previous implementation to filter decls not in the main file did not
work in the case where a template was instantiated from a header in the
main file. It would than include that function/class in topLevelDecls.

Differential Revision: https://reviews.llvm.org/D63817

llvm-svn: 364747
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/unittests/ClangdUnitTests.cpp