Skip to content

Commit 61c5346

Browse files
committed
SILGen: flesh out Foundation stubs further
The local bridging headers needed two new definitions: - NSErrorDomain - NS_OPTIONS These can be used by the SILGen tests to build against a stubbed Foundation rather than requiring the host to provide it.
1 parent ebaf0b6 commit 61c5346

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/SILGen/Inputs/usr/include/BridgeTestFoundation.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#import "ObjectiveC.h"
22
#import "dispatch.h"
33

4+
#define NS_OPTIONS(type, name) type name; enum
5+
46
#pragma clang assume_nonnull begin
57

68
@interface NSString : NSObject<NSCopying>
@@ -10,6 +12,8 @@
1012

1113
@end
1214

15+
typedef NSString *NSErrorDomain;
16+
1317
@interface NSArray<ObjectType> : NSObject
1418

1519
- (_Nonnull instancetype)initWithObjects:(const _Null_unspecified ObjectType * _Null_unspecified)objects count:(int)count;

0 commit comments

Comments
 (0)