[cfe-commits] r137945 - /cfe/trunk/include/clang/AST/RecursiveASTVisitor.h

Manuel Klimek klimek at google.com
Thu Aug 18 09:50:43 PDT 2011


Author: klimek
Date: Thu Aug 18 11:50:43 2011
New Revision: 137945

URL: http://llvm.org/viewvc/llvm-project?rev=137945&view=rev
Log:
Fixes traversal of class template nodes on template instantiations.
Also fixes a spelling error.

Modified:
    cfe/trunk/include/clang/AST/RecursiveASTVisitor.h

Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=137945&r1=137944&r2=137945&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Thu Aug 18 11:50:43 2011
@@ -1256,7 +1256,7 @@
           = (U.get<ClassTemplatePartialSpecializationDecl*>() == Pattern);
 
       if (ShouldVisit)
-        TRY_TO(TraverseClassTemplateSpecializationDecl(SD));
+        TRY_TO(TraverseDecl(SD));
       break;
     }
 
@@ -1284,7 +1284,7 @@
     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





More information about the cfe-commits mailing list