Skip to content

[ClangImporter] If enum_extensibility was removed, it's not an enum. #8992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2017

Conversation

jrose-apple
Copy link
Contributor

(and similar for flag_enum)

This commit prepares the importer for a world in which NS_ENUM and NS_OPTIONS have adopted the new Clang attributes enum_extensibility and flag_enum, but API notes are used to reverse the effect. Without this there would be no transition path for adopting the standard Cocoa macros, which have applied unconditionally up to now.

rdar://problem/18744821

(and similar for flag_enum)

This commit prepares the importer for a world in which NS_ENUM and
NS_OPTIONS have adopted the new Clang attributes 'enum_extensibility'
and 'flag_enum', but API notes are used to reverse the effect. Without
this there would be no transition path for adopting the standard Cocoa
macros, which have applied unconditionally up to now.

rdar://problem/18744821
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple jrose-apple merged commit 6f7925c into swiftlang:master Apr 25, 2017
@jrose-apple jrose-apple deleted the enums-using-attributes branch April 25, 2017 16:04
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Apr 25, 2017
…wiftlang#8992)

(and similar for flag_enum)

This commit prepares the importer for a world in which NS_ENUM and
NS_OPTIONS have adopted the new Clang attributes 'enum_extensibility'
and 'flag_enum', but API notes are used to reverse the effect. Without
this there would be no transition path for adopting the standard Cocoa
macros, which have applied unconditionally up to now.

rdar://problem/18744821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant