From: Manuel Klimek Date: Thu, 18 Aug 2011 16:50:43 +0000 (+0000) Subject: Fixes traversal of class template nodes on template instantiations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f89b4016505045d79b53ce1204fc2c46c7d01c9;p=clang Fixes traversal of class template nodes on template instantiations. Also fixes a spelling error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137945 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 8f593c1264..473ba66f38 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -1256,7 +1256,7 @@ bool RecursiveASTVisitor::TraverseClassInstantiations( = (U.get() == Pattern); if (ShouldVisit) - TRY_TO(TraverseClassTemplateSpecializationDecl(SD)); + TRY_TO(TraverseDecl(SD)); break; } @@ -1284,7 +1284,7 @@ DEF_TRAVERSE_DECL(ClassTemplateDecl, { TRY_TO(TraverseTemplateParameterListHelper(D->getTemplateParameters())); // By default, we do not traverse the instantiations of - // class templates since they do not apprear in the user code. The + // class templates since they do not appear in the user code. The // following code optionally traverses them. if (getDerived().shouldVisitTemplateInstantiations()) { // If this is the definition of the primary template, visit