Skip to content
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

[ClangImporter] Ignore swift_name when calculating enum constant prefix #743

Merged
merged 1 commit into from
Dec 23, 2015

Conversation

lilyball
Copy link
Contributor

Enum constants are naturally going to be named after their ObjC name,
not their Swift name. As such, ignore the swift_name attr on the enum
decl when calculating the common prefix. It turns out this is actually
simpler anyway as it also bypasses the swift_private handling that the
code was already trying to work around.

Enum constants are naturally going to be named after their ObjC name,
not their Swift name. As such, ignore the swift_name attr on the enum
decl when calculating the common prefix. It turns out this is actually
simpler anyway as it also bypasses the swift_private handling that the
code was already trying to work around.
@jrose-apple
Copy link
Contributor

Looks good, thanks!

jrose-apple added a commit that referenced this pull request Dec 23, 2015
[ClangImporter] Ignore swift_name when calculating enum constant prefix
@jrose-apple jrose-apple merged commit c217f01 into swiftlang:master Dec 23, 2015
@lilyball lilyball deleted the enum-constant-prefix branch December 23, 2015 23:44
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.

2 participants