From 9fd6ee6a7842628f72b39fa2bdacdb201a6681d8 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 15 Mar 2017 20:14:25 +0000 Subject: Add AST matchers for ObjCProtocolDecl, ObjCCategoryDecl, ObjCMethodDecl, ObjCIvarDecl, and ObjCPropertyDecl. Patch by Dave Lee. llvm-svn: 297882 --- clang/docs/LibASTMatchersReference.html | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'clang/docs/LibASTMatchersReference.html') diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 0fd7a744b38..dd29149e634 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -337,6 +337,15 @@ nonTypeTemplateParmDecl() +Matcher<Decl>objcCategoryDeclMatcher<ObjCCategoryDecl>... +
Matches Objective-C category declarations.
+
+Example matches Foo (Additions)
+  @interface Foo (Additions)
+  @end
+
+ + Matcher<Decl>objcInterfaceDeclMatcher<ObjCInterfaceDecl>...
Matches Objective-C interface declarations.
 
@@ -346,6 +355,50 @@ Example matches Foo
 
+Matcher<Decl>objcIvarDeclMatcher<ObjCIvarDecl>... +
Matches Objective-C instance variable declarations.
+
+Example matches _enabled
+  @implementation Foo {
+    BOOL _enabled;
+  }
+  @end
+
+ + +Matcher<Decl>objcMethodDeclMatcher<ObjCMethodDecl>... +
Matches Objective-C method declarations.
+
+Example matches both declaration and definition of -[Foo method]
+  @interface Foo
+  - (void)method;
+  @end
+
+  @implementation Foo
+  - (void)method {}
+  @end
+
+ + +Matcher<Decl>objcPropertyDeclMatcher<ObjCPropertyDecl>... +
Matches Objective-C property declarations.
+
+Example matches enabled
+  @interface Foo
+  @property BOOL enabled;
+  @end
+
+ + +Matcher<Decl>objcProtocolDeclMatcher<ObjCProtocolDecl>... +
Matches Objective-C protocol declarations.
+
+Example matches FooDelegate
+  @protocol FooDelegate
+  @end
+
+ + Matcher<Decl>parmVarDeclMatcher<ParmVarDecl>...
Matches parameter variable declarations.
 
-- 
cgit v1.2.3