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

Craig Silverstein csilvers2000 at yahoo.com
Mon Jun 28 17:02:18 PDT 2010


Author: csilvers
Date: Mon Jun 28 19:02:17 2010
New Revision: 107102

URL: http://llvm.org/viewvc/llvm-project?rev=107102&view=rev
Log:
A few prettifications.  Also renamed TraverseInitializer to
TraverseConstructorInitializer, to be a bit clearer.

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=107102&r1=107101&r2=107102&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Mon Jun 28 19:02:17 2010
@@ -182,10 +182,10 @@
   /// \brief Recursively visit a constructor initializer.  This
   /// automatically dispatches to another visitor for the initializer
   /// expression, but not for the name of the initializer, so may
-  /// be overridden for clients that need access to the nam.e
+  /// be overridden for clients that need access to the name.
   ///
   /// \returns false if the visitation was terminated early, true otherwise.
-  bool TraverseInitializer(clang::CXXBaseOrMemberInitializer* Init);
+  bool TraverseConstructorInitializer(CXXBaseOrMemberInitializer *Init);
 
   // ---- Methods on Stmts ----
 
@@ -310,7 +310,7 @@
   bool TraverseRecordHelper(RecordDecl *D);
   bool TraverseCXXRecordHelper(CXXRecordDecl *D);
   bool TraverseDeclaratorHelper(DeclaratorDecl *D);
-  bool TraverseDeclContextHelper(DeclContext* DC);
+  bool TraverseDeclContextHelper(DeclContext *DC);
   bool TraverseFunctionHelper(FunctionDecl *D);
   bool TraverseVarHelper(VarDecl *D);
 };
@@ -469,8 +469,8 @@
 }
 
 template<typename Derived>
-bool RecursiveASTVisitor<Derived>::TraverseInitializer(
-                                    clang::CXXBaseOrMemberInitializer* Init) {
+bool RecursiveASTVisitor<Derived>::TraverseConstructorInitializer(
+                                            CXXBaseOrMemberInitializer *Init) {
   // FIXME: recurse on TypeLoc of the base initializer if isBaseInitializer()?
   if (Init->isWritten())
     TRY_TO(TraverseStmt(Init->getInit()));
@@ -633,7 +633,7 @@
 // than those.
 
 template<typename Derived>
-bool RecursiveASTVisitor<Derived>::TraverseDeclContextHelper(DeclContext* DC) {
+bool RecursiveASTVisitor<Derived>::TraverseDeclContextHelper(DeclContext *DC) {
   if (!DC)
     return true;
 
@@ -899,7 +899,7 @@
     // is the only callback that's made for this instantiation.
     // We use getTypeAsWritten() to distinguish.
     // FIXME: see how we want to handle template specializations.
-    TypeSourceInfo* TSI = D->getTypeAsWritten();
+    TypeSourceInfo *TSI = D->getTypeAsWritten();
     if (TSI)
       TRY_TO(TraverseType(TSI->getType()));
     return true;
@@ -1017,7 +1017,7 @@
     for (CXXConstructorDecl::init_iterator I = D->init_begin(),
                                            E = D->init_end();
          I != E; ++I) {
-      TRY_TO(TraverseInitializer(*I));
+      TRY_TO(TraverseConstructorInitializer(*I));
     }
 
     // We skip decls_begin/decls_end, which are already covered by





More information about the cfe-commits mailing list