[clangd] Don't index template specializations.
authorSam McCall <sam.mccall@gmail.com>
Fri, 9 Mar 2018 13:25:29 +0000 (13:25 +0000)
committerSam McCall <sam.mccall@gmail.com>
Fri, 9 Mar 2018 13:25:29 +0000 (13:25 +0000)
commit824913bdb71024a9d90942c0249e674c01001214
treef926ccc21e41f250470f1c96df81a35faeaff2c9
parent3e77b20dbad6636b04d54cd74ff2c329fff30f46
[clangd] Don't index template specializations.

Summary:
These have different USRs than the underlying entity, but are not typically
interesting in their own right and can be numerous (e.g. generated traits).

Reviewers: ioeric

Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits

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

llvm-svn: 327127
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/unittests/clangd/SymbolCollectorTests.cpp