summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexSymbol.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-02-21 09:52:33 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-02-21 09:52:33 +0000
commitb780517ca5a1102187acbcedca8381542c809063 (patch)
tree9686472857d806f028fde14ffeef90f562d61678 /clang/lib/Index/IndexSymbol.cpp
parentb672602f9ed9cf683e6094e615be6c65cca2f96e (diff)
downloadbcm5719-llvm-b780517ca5a1102187acbcedca8381542c809063.tar.gz
bcm5719-llvm-b780517ca5a1102187acbcedca8381542c809063.zip
[clang][Index] Enable indexing of Template Type Parameters behind a flag
Summary: clangd uses indexing api to provide references and it was not possible to perform symbol information for template parameters. This patch enables visiting of TemplateTypeParmTypeLocs. Reviewers: ilya-biryukov, akyrtzi Subscribers: javed.absar, kristof.beyls, ioeric, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58293 llvm-svn: 354560
Diffstat (limited to 'clang/lib/Index/IndexSymbol.cpp')
-rw-r--r--clang/lib/Index/IndexSymbol.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp
index 27e62af19f2..d21c673dee4 100644
--- a/clang/lib/Index/IndexSymbol.cpp
+++ b/clang/lib/Index/IndexSymbol.cpp
@@ -55,9 +55,6 @@ bool index::isFunctionLocalSymbol(const Decl *D) {
if (isa<ParmVarDecl>(D))
return true;
- if (isa<TemplateTemplateParmDecl>(D))
- return true;
-
if (isa<ObjCTypeParamDecl>(D))
return true;
OpenPOWER on IntegriCloud