// 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 -(void)method; +(void)classMethod; @end // This was also explicitly allowlisted @interface AllowlistMe (InterestingCategory) @end // This was not automatically allowlisted @interface AllowlistMe (IgnoredCategory) @end