diff options
author | Dave Lee <davelee.com@gmail.com> | 2017-09-10 21:00:15 +0000 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2017-09-10 21:00:15 +0000 |
commit | 1b5154c90e932976b3ee7283528be59ddff072e3 (patch) | |
tree | a32030e660f24e3392d69034adba3f4b01b27e63 /include/clang/ASTMatchers | |
parent | c849b13cb2ca6ae07b5953338db8109932d51bc2 (diff) |
Add objcImplementationDecl matcher
Summary:
Add the `objcImplementationDecl` matcher. See related: D30854
Tested with:
```
./tools/clang/unittests/ASTMatchers/ASTMatchersTests
```
Reviewers: aaron.ballman, compnerd, alexshap
Reviewed By: aaron.ballman
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D37643
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/ASTMatchers')
-rw-r--r-- | include/clang/ASTMatchers/ASTMatchers.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 8c1b082fc8..21a6c2bb76 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -1145,6 +1145,17 @@ const internal::VariadicDynCastAllOfMatcher< Decl, ObjCInterfaceDecl> objcInterfaceDecl; +/// \brief Matches Objective-C implementation declarations. +/// +/// Example matches Foo +/// \code +/// @implementation Foo +/// @end +/// \endcode +const internal::VariadicDynCastAllOfMatcher< + Decl, + ObjCImplementationDecl> objcImplementationDecl; + /// \brief Matches Objective-C protocol declarations. /// /// Example matches FooDelegate |