]> granicus.if.org Git - clang/commitdiff
In ASTVisitor, call the correct base methods.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Sep 2009 21:26:35 +0000 (21:26 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Sep 2009 21:26:35 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Index/ASTVisitor.h

index 11089f044dcfe07f671fe03d509214574bf9f830..fe0db40d204bf346c19bdc4bc10efc2e5b9f5190 100644 (file)
@@ -48,24 +48,24 @@ public:
   }
 
   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);
   }