Files
swift-mirror/test/IDE/Inputs/custom-modules/ImportAsMemberClass.h
Doug Gregor 138bbe2167 [Clang importer] Delay resolution of import-as-member declarations when needed.
It's possible for swift_name to make a global declaration into a
member of another entity that has not been seen yet. In such cases,
delay resolution until the end of the translation unit (module). Fixes
the rest of rdar://problem/25502497.
2016-04-05 00:03:36 -07:00

23 lines
641 B
Objective-C

#ifndef IMPORT_AS_MEMBER_CLASS_H
#define IMPORT_AS_MEMBER_CLASS_H
@import Foundation;
typedef NS_OPTIONS(NSInteger, IAMSomeClassOptions) {
IAMSomeClassFuzzyDice = 0x01,
IAMSomeClassSpoiler = 0x02
} __attribute__((swift_name("SomeClass.Options")));
__attribute__((swift_name("SomeClass")))
@interface IAMSomeClass : NSObject
@end
__attribute__((swift_name("SomeClass.init(value:)")))
IAMSomeClass * _Nonnull MakeIAMSomeClass(double x);
__attribute__((swift_name("SomeClass.applyOptions(self:_:)")))
void IAMSomeClassApplyOptions(IAMSomeClass * _Nonnull someClass,
IAMSomeClassOptions options);
#endif