summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/IndexDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/IndexDecl.cpp')
-rw-r--r--clang/tools/libclang/IndexDecl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp
index d2eb402ba28..3e9266995e0 100644
--- a/clang/tools/libclang/IndexDecl.cpp
+++ b/clang/tools/libclang/IndexDecl.cpp
@@ -220,6 +220,15 @@ public:
return true;
}
+ bool VisitClassTemplateSpecializationDecl(
+ ClassTemplateSpecializationDecl *D) {
+ // FIXME: Notify subsequent callbacks that info comes from implicit
+ // instantiation.
+ if (D->isThisDeclarationADefinition())
+ IndexCtx.indexTagDecl(D);
+ return true;
+ }
+
bool VisitFunctionTemplateDecl(FunctionTemplateDecl *D) {
IndexCtx.handleFunctionTemplate(D);
FunctionDecl *FD = D->getTemplatedDecl();
OpenPOWER on IntegriCloud