-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfobjective-c interopFeature: Interoperability with Objective-CFeature: Interoperability with Objective-Cunexpected errorBug: Unexpected errorBug: Unexpected error
Description
When using frameworks compiled with pre-5.8 compilers it can be trivial to have conflicting definitions of the SWIFT_ENUM
macro in the generated Swift header. I believe this is a similar issue to #63338
My guess is that the new ClangMacros.def
introduced in #59072 has accidentally omitted a space: https://github.com/apple/swift/blob/75f53a9b1923e891985734ea6ac6f4cae4d91603/include/swift/PrintAsClang/ClangMacros.def#L178
_name: _type
used to be _name : _type
(note the space before :
)
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfobjective-c interopFeature: Interoperability with Objective-CFeature: Interoperability with Objective-Cunexpected errorBug: Unexpected errorBug: Unexpected error