Sema: Suppress explicit availability diagnostics on non-Darwin targets.

Suggesting the addition of an `@available` attribute on Linux and Windows is
inapprorpriate given that Swift is not ABI stable on those platforms.

Resolves rdar://107387133
This commit is contained in:
Allan Shortlidge
2023-05-08 12:20:40 -07:00
parent 44489c77b2
commit 93a96e81c2
5 changed files with 43 additions and 9 deletions

View File

@@ -970,6 +970,9 @@ public:
/// Swift compiler for future versions of the target platform.
AvailabilityContext getSwiftFutureAvailability();
/// Returns `true` if versioned availability annotations are supported for the
/// target triple.
bool supportsVersionedAvailability() const;
//===--------------------------------------------------------------------===//
// Diagnostics Helper functions