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

Daniel Jasper djasper at google.com
Tue Jun 26 15:15:39 PDT 2012


Author: djasper
Date: Tue Jun 26 17:15:38 2012
New Revision: 159231

URL: http://llvm.org/viewvc/llvm-project?rev=159231&view=rev
Log:
Always use getDerived().shouldVisitImplicitCode() so it can be altered
in subclasses.

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=159231&r1=159230&r2=159231&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Tue Jun 26 17:15:38 2012
@@ -1762,7 +1762,7 @@
   TRY_TO(TraverseDeclaratorHelper(D));
   // Default params are taken care of when we traverse the ParmVarDecl.
   if (!isa<ParmVarDecl>(D) &&
-      (!D->isCXXForRangeDecl() || shouldVisitImplicitCode()))
+      (!D->isCXXForRangeDecl() || getDerived().shouldVisitImplicitCode()))
     TRY_TO(TraverseStmt(D->getInit()));
   return true;
 }
@@ -1881,7 +1881,7 @@
 DEF_TRAVERSE_STMT(ObjCForCollectionStmt, { })
 DEF_TRAVERSE_STMT(ObjCAutoreleasePoolStmt, { })
 DEF_TRAVERSE_STMT(CXXForRangeStmt, {
-  if (!shouldVisitImplicitCode()) {
+  if (!getDerived().shouldVisitImplicitCode()) {
     TRY_TO(TraverseStmt(S->getLoopVarStmt()));
     TRY_TO(TraverseStmt(S->getRangeInit()));
     TRY_TO(TraverseStmt(S->getBody()));





More information about the cfe-commits mailing list