forked from OSchip/llvm-project
[libclang] Index C++ template specializations, rdar://10732708
llvm-svn: 148707
This commit is contained in:
parent
9f777356a3
commit
7e614d7dce
|
@ -70,6 +70,14 @@ public:
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VisitTemplateSpecializationTypeLoc(TemplateSpecializationTypeLoc TL) {
|
||||
if (const TemplateSpecializationType *T = TL.getTypePtr())
|
||||
if (const TemplateDecl *D = T->getTemplateName().getAsTemplateDecl())
|
||||
IndexCtx.handleReference(D, TL.getTemplateNameLoc(),
|
||||
Parent, ParentDC);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
|
Loading…
Reference in New Issue