mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
17 lines
400 B
Objective-C
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
|