diff options
| author | John McCall <rjmccall@apple.com> | 2011-06-30 08:33:18 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-06-30 08:33:18 +0000 |
| commit | d9dfe3a1f8af68fef298666e50685c30d6f6a974 (patch) | |
| tree | 6b7b151ea8d1496c0bb3a2ea932212a5840c0a9e /clang/tools/libclang/CIndex.cpp | |
| parent | c91f09d73a82a270e2a6a8d19bf67aa4f71d01ee (diff) | |
| download | bcm5719-llvm-d9dfe3a1f8af68fef298666e50685c30d6f6a974.tar.gz bcm5719-llvm-d9dfe3a1f8af68fef298666e50685c30d6f6a974.zip | |
Preserve that a TemplateName was arrived at by substituting
for a template template parameter.
Uses to follow.
I've also made the uniquing of SubstTemplateTemplateParmPacks
use a ContextualFoldingSet as a minor space efficiency.
llvm-svn: 134137
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index ec78caa7830..e4902e9035b 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1330,6 +1330,11 @@ bool CursorVisitor::VisitTemplateName(TemplateName Name, SourceLocation Loc) { return Visit(MakeCursorTemplateRef( Name.getAsQualifiedTemplateName()->getDecl(), Loc, TU)); + + case TemplateName::SubstTemplateTemplateParm: + return Visit(MakeCursorTemplateRef( + Name.getAsSubstTemplateTemplateParm()->getParameter(), + Loc, TU)); case TemplateName::SubstTemplateTemplateParmPack: return Visit(MakeCursorTemplateRef( |

