mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add the command line option -require-explicit-availability to detect public or `@usableFromInline` declarations and warn if they don't declare an introduction OS version. This option should catch forgotten `@available` attributes in frameworks where all services are expected to be introduced by an OS version. The option -require-explicit-availability-target "macOS 10.14, iOS 12.0" can be specified for the compiler to suggest fix-its with the missing attributes `@available(macOS 10.14, iOS 12.0, *)`. rdar://51001662
52 KiB
52 KiB