diff options
| author | Johan Vikstrom <jvikstrom@google.com> | 2019-08-08 07:21:06 +0000 |
|---|---|---|
| committer | Johan Vikstrom <jvikstrom@google.com> | 2019-08-08 07:21:06 +0000 |
| commit | 720d19b175c48e27dd56d111d7cb8b43451cae69 (patch) | |
| tree | 75f4bee1f3142cdf996e6118069717ea28b34a4b /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp | |
| parent | 67ea32a00709f5f2d999002d747c58ac357223fd (diff) | |
| download | llvm-720d19b175c48e27dd56d111d7cb8b43451cae69.zip llvm-720d19b175c48e27dd56d111d7cb8b43451cae69.tar.gz llvm-720d19b175c48e27dd56d111d7cb8b43451cae69.tar.bz2 | |
[clangd] Fix implicit template instatiations appearing as topLevelDecls.
Summary: The parser gives implicit template instantiations to the action's HandleTopLevelDecls callback. This makes semantic highlighting highlight these templated functions multiple times. Fixed by filtering on if a Decl is an implicit function/variable/class instantiation. Also added a testcase to semantic highlighting on this.
Reviewers: hokein, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65510
llvm-svn: 368261
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions
