mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The warnings about deprecated @objc inference in Swift 3 mode can be a bit annoying; and are mostly relevant to the migration workflow. Make the warning emission a three-state switch: * None (the default): don't warn about these issues. * Minimal (-warn-swift3-objc-inference-minimal): warn about direct uses of @objc entrypoints and provide "@objc" Fix-Its for them. * Complete (-warn-swift3-objc-inference-complete): warn about all cases where Swift 3 infers @objc but Swift 4 will not. Fixes rdar://problem/31922278.
63 KiB
63 KiB