aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2011-08-18 16:50:43 +0000
committerManuel Klimek <klimek@google.com>2011-08-18 16:50:43 +0000
commit1f89b4016505045d79b53ce1204fc2c46c7d01c9 (patch)
treec144fe3e008e5c8f47ecd1bf1f2e28f15811beb7
parent3bd9aa4593b4332d477407d9b5a42f3c4ababb21 (diff)
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
-rw-r--r--include/clang/AST/RecursiveASTVisitor.h4
1 files changed, 2 insertions, 2 deletions
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<Derived>::TraverseClassInstantiations(
= (U.get<ClassTemplatePartialSpecializationDecl*>() == 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