Files
swift-mirror/test/ClangImporter/Inputs/sdk-bridging-header.h
Becca Royal-Gordon ced4cb0681 Handle out-of-date identifiers in macros
After adopting the stable/20221013 clang branch, ClangImporter started seeing out-of-date identifiers in macros where it previously never had. Force these identifiers to update themselves before we read the macro definition out of them.

Fixes rdar://104456939.
2023-01-26 14:01:21 -08:00

17 lines
400 B
Objective-C

@import ObjectiveC;
#import <stdbool.h>
@class NSArray;
@interface MyPredicate : NSObject {
int kind : 2; // Should not cause crash in PCH processing (rdar://85173321)
}
+ (nonnull MyPredicate *)truePredicate;
+ (nonnull MyPredicate *)not;
+ (nonnull MyPredicate *)and:(nonnull NSArray *)subpredicates;
+ (nonnull MyPredicate *)or:(nonnull NSArray *)subpredicates;
@end
#define MY_TRUE true