blob: b5406d0adf8ea286beebb4fc305c59ea83ec173c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// bindgen-flags: --allowlist-type IAllowlistMe --allowlist-type AllowlistMe_InterestingCategory -- -x objective-c
// bindgen-osx-only
// Protocol should be included, since it is used by the AllowlistMe
@protocol SomeProtocol
-(void)protocolMethod;
+(void)protocolClassMethod;
@end
// The allowlisted item
@interface AllowlistMe <SomeProtocol>
-(void)method;
+(void)classMethod;
@end
// This was also explicitly allowlisted
@interface AllowlistMe (InterestingCategory)
@end
// This was not automatically allowlisted
@interface AllowlistMe (IgnoredCategory)
@end
|