Skip to content

[Migrator] Conservative and Minimal @objc inference workflows #9116

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 29, 2017
Merged

[Migrator] Conservative and Minimal @objc inference workflows #9116

merged 1 commit into from
Apr 29, 2017

Conversation

bitjammer
Copy link
Contributor

Based on recommendations in SE-0160, there are two migration workflows:

  • Conservative: Maintain @objc visibility that was inferred in Swift 3
    by adding @objc to all declarations that were implicitily visible to
    the Objective-C runtime. This is invoked in the migrator by adding the
    -migrate-keep-objc-visibility flag.
  • Minimal: Only declarations that must be visible to Objective-C based
    on their uses (or in cases like dynamic vars) are migrated.

rdar://problem/31876357

@bitjammer
Copy link
Contributor Author

@swift-ci Please smoke test and merge

Based on recommendations in SE-0160, there are two migration workflows:

- Conservative: Maintain @objc visibility that was inferred in Swift 3
  by adding @objc to all declarations that were implicitily visible to
  the Objective-C runtime. This is invoked in the migrator by adding the
  -migrate-keep-objc-visibility flag.
- Minimal: Only declarations that must be visible to Objective-C based
  on their uses (or in cases like dynamic vars) are migrated.

rdar://problem/31876357
@bitjammer
Copy link
Contributor Author

@swift-ci Please smoke test

@bitjammer bitjammer merged commit 0ecf8a9 into swiftlang:master Apr 29, 2017
@bitjammer bitjammer deleted the rdar-31876357-migrator-objc-inference-workflows branch April 29, 2017 05:37
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