In ASTVisitor, call the correct base methods.

llvm-svn: 83110
This commit is contained in:
Argyrios Kyrtzidis 2009-09-29 21:26:35 +00:00
parent edd1129c36
commit 9c28a3d13c
1 changed files with 4 additions and 4 deletions

View 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);
}