]> granicus.if.org Git - clang/commitdiff
Make RecursiveASTVisitor traverse a ObjCMethodDecl.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 10 Dec 2010 20:08:22 +0000 (20:08 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 10 Dec 2010 20:08:22 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121515 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index 085e65ce02da453d200149ffc917abcc5b969802..962da15e247e68dd4277c5944be577471f9f53e4 100644 (file)
@@ -1091,7 +1091,9 @@ DEF_TRAVERSE_DECL(ObjCProtocolDecl, {
   })
 
 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, {