summaryrefslogtreecommitdiff
path: root/tests/headers/objc_allowlist.h
blob: 8c939960b006609be23e85c4d19db786cdf7b09d (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: --objc-extern-crate --allowlist-type AllowlistMe --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