Make isDefinition matcher support ObjCMethodDecl
Summary: Allow the `isDefinition()` matcher to apply to `ObjCMethodDecl` nodes, in addition to those it already supports. For whatever reason, `ObjCMethodDecl` does not inherit from `FunctionDecl` and so this is specialization is necessary. Reviewers: aaron.ballman, malcolm.parsons, alexshap Reviewed By: aaron.ballman Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D39948 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318152 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 48 additions, 5 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 9 additions, 1 deletioninclude/clang/ASTMatchers/ASTMatchers.h
- unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 8 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
Loading
Please register or sign in to comment