[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / Inputs / literal-support.h
blob5680a20c9fb560480932d35febc1bb9a04ee8e32
1 #ifndef OBJC_LITERAL_SUPPORT_H
2 #define OBJC_LITERAL_SUPPORT_H
4 typedef unsigned char BOOL;
6 @interface NSNumber @end
8 @interface NSNumber (NSNumberCreation)
9 + (NSNumber *)numberWithChar:(char)value;
10 + (NSNumber *)numberWithUnsignedChar:(unsigned char)value;
11 + (NSNumber *)numberWithShort:(short)value;
12 + (NSNumber *)numberWithUnsignedShort:(unsigned short)value;
13 + (NSNumber *)numberWithInt:(int)value;
14 + (NSNumber *)numberWithUnsignedInt:(unsigned int)value;
15 + (NSNumber *)numberWithLong:(long)value;
16 + (NSNumber *)numberWithUnsignedLong:(unsigned long)value;
17 + (NSNumber *)numberWithLongLong:(long long)value;
18 + (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value;
19 + (NSNumber *)numberWithFloat:(float)value;
20 + (NSNumber *)numberWithDouble:(double)value;
21 + (NSNumber *)numberWithBool:(BOOL)value;
22 @end
24 @interface NSArray
25 @end
27 @interface NSArray (NSArrayCreation)
28 + (id)arrayWithObjects:(const id [])objects count:(unsigned long)cnt;
29 @end
31 @interface NSDictionary
32 + (id)dictionaryWithObjects:(const id [])objects forKeys:(const id [])keys count:(unsigned long)cnt;
33 @end
35 #endif // OBJC_LITERAL_SUPPORT_H