]> granicus.if.org Git - clang/commitdiff
Fixes traversal of class template nodes on template instantiations.
authorManuel Klimek <klimek@google.com>
Thu, 18 Aug 2011 16:50:43 +0000 (16:50 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 18 Aug 2011 16:50:43 +0000 (16:50 +0000)
Also fixes a spelling error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137945 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index 8f593c12647e132c3c1d712392e9248c092d1b00..473ba66f381fcbd6871ff0a1b7716b173856cf4d 100644 (file)
@@ -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