[cfe-commits] r83110 - /cfe/trunk/lib/Index/ASTVisitor.h

Argiris Kirtzidis akyrtzi at gmail.com
Tue Sep 29 14:26:35 PDT 2009


Author: akirtzidis
Date: Tue Sep 29 16:26:35 2009
New Revision: 83110

URL: http://llvm.org/viewvc/llvm-project?rev=83110&view=rev
Log:
In ASTVisitor, call the correct base methods.

Modified:
    cfe/trunk/lib/Index/ASTVisitor.h

Modified: cfe/trunk/lib/Index/ASTVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/ASTVisitor.h?rev=83110&r1=83109&r2=83110&view=diff

==============================================================================
--- cfe/trunk/lib/Index/ASTVisitor.h (original)
+++ cfe/trunk/lib/Index/ASTVisitor.h Tue Sep 29 16:26:35 2009
@@ -48,24 +48,24 @@
   }
 
   void VisitFunctionDecl(FunctionDecl *D) {
-    BaseDeclVisitor::VisitValueDecl(D);
+    BaseDeclVisitor::VisitFunctionDecl(D);
     if (D->isThisDeclarationADefinition())
       Visit(D->getBody());
   }
 
   void VisitObjCMethodDecl(ObjCMethodDecl *D) {
-    BaseDeclVisitor::VisitNamedDecl(D);
+    BaseDeclVisitor::VisitObjCMethodDecl(D);
     if (D->getBody())
       Visit(D->getBody());
   }
 
   void VisitBlockDecl(BlockDecl *D) {
-    BaseDeclVisitor::VisitDecl(D);
+    BaseDeclVisitor::VisitBlockDecl(D);
     Visit(D->getBody());
   }
 
   void VisitVarDecl(VarDecl *D) {
-    BaseDeclVisitor::VisitValueDecl(D);
+    BaseDeclVisitor::VisitVarDecl(D);
     if (Expr *Init = D->getInit())
       Visit(Init);
   }





More information about the cfe-commits mailing list