[cfe-commits] r121515 - /cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Dec 10 12:08:22 PST 2010
Author: akirtzidis
Date: Fri Dec 10 14:08:22 2010
New Revision: 121515
URL: http://llvm.org/viewvc/llvm-project?rev=121515&view=rev
Log:
Make RecursiveASTVisitor traverse a ObjCMethodDecl.
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=121515&r1=121514&r2=121515&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Fri Dec 10 14:08:22 2010
@@ -1091,7 +1091,9 @@
})
DEF_TRAVERSE_DECL(ObjCMethodDecl, {
- // FIXME: implement
+ // We don't traverse nodes in param_begin()/param_end(), as they
+ // appear in decls_begin()/decls_end() and thus are handled.
+ TRY_TO(TraverseStmt(D->getBody()));
})
DEF_TRAVERSE_DECL(ObjCPropertyDecl, {
More information about the cfe-commits
mailing list