diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-10 20:08:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-10 20:08:22 +0000 |
commit | 5e362102f8bac7a46cf8ff4394ea29548a4c1ab0 (patch) | |
tree | 99a0d7abcaf04124c681285227787a6499498a8c | |
parent | 42499f94069c73d7a9c82da98a4245ea9fe2c526 (diff) |
Make RecursiveASTVisitor traverse a ObjCMethodDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121515 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/RecursiveASTVisitor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 085e65ce02..962da15e24 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -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, { |