Skip to content

[4.0][migrator] When renaming a function decl, we should use underscore to represent empty external argument label. rdar://34569243 #12225

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
Oct 3, 2017

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Oct 2, 2017

Explanation: We recently changed DeclNameView to return an empty string instead of an underscore to represent an empty argument label. This leads to migration errors when we use the representation literally. This fix teaches migrator to use underscore when emitting rename changes.
Scope: Swift 4.0 Migrator
Radar: rdar://problem/34569243
Risk: Very low
Testing: Regression test added

… represent empty external argument label. rdar://34569243 (#12221)
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Oct 2, 2017

@swift-ci please test

@nkcsgexi nkcsgexi added this to the Swift 4.0 milestone Oct 2, 2017
@swift-ci
Copy link
Contributor

swift-ci commented Oct 2, 2017

Build failed
Swift Test Linux Platform
Git Sha - 9286546

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Oct 2, 2017

@swift-ci Please clean test Linux platform

@nkcsgexi nkcsgexi merged commit 254fc5e into swiftlang:swift-4.0-branch Oct 3, 2017
@nkcsgexi nkcsgexi deleted the migrator-fix-4.0 branch October 3, 2017 00:39
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