Files
swift-mirror/test/IDE/Inputs/custom-modules/ImportAsMemberAPINotes.h
Jordan Rose bd1920ba67 [ClangImporter] Fix versioned stubs for functions-as-members. (#8539)
That is, the stubs we generate when you rename a C global function
imported as a type member using the SwiftName API note. (See the
test case changes.) Previously we hit an assertion.

For good measure, also fix versioned stubs for types-as-members,
which were always added to their original context rather than the
new context.

rdar://problem/31435658
2017-04-04 15:20:30 -07:00

15 lines
362 B
C

#ifndef IMPORT_AS_MEMBER_APINOTES_H
#define IMPORT_AS_MEMBER_APINOTES_H
#include "ImportAsMember.h"
extern double IAMStruct1APINoteVar;
extern double IAMStruct1APINoteVarInSwift4;
extern void IAMStruct1APINoteFunction(void);
extern struct IAMStruct1 IAMStruct1APINoteCreateFunction(int);
typedef double IAMStruct1APINoteType;
#endif // IMPORT_AS_MEMBER_B_H