Files
swift-mirror/test/IDE/Inputs/custom-modules/ImportAsMember.apinotes
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

30 lines
861 B
Plaintext

Name: ImportAsMember
Globals:
- Name: IAMStruct1APINoteVar
SwiftName: Struct1.newApiNoteVar
- Name: IAMStruct1APINoteVarInSwift4
SwiftName: Struct1.apiNoteVarInSwift4
Functions:
- Name: IAMStruct1APINoteFunction
SwiftName: "Struct1.newApiNoteMethod()"
- Name: IAMStruct1APINoteCreateFunction
SwiftName: "Struct1.init(newLabel:)"
Typedefs:
- Name: IAMStruct1APINoteType
SwiftName: Struct1.NewApiNoteType
SwiftVersions:
- Version: 3
Globals:
- Name: IAMStruct1APINoteVar
SwiftName: Struct1.oldApiNoteVar
- Name: IAMStruct1APINoteVarInSwift4
SwiftName: IAMStruct1APINoteVarInSwift4
Functions:
- Name: IAMStruct1APINoteFunction
SwiftName: "Struct1.oldApiNoteMethod()"
- Name: IAMStruct1APINoteCreateFunction
SwiftName: "Struct1.init(oldLabel:)"
Typedefs:
- Name: IAMStruct1APINoteType
SwiftName: Struct1.OldApiNoteType