Anthony Latsis
5e41794680
AST: Quote attributes more consistently in DiagnosticsSema.def
2025-04-23 19:18:08 +01:00
Allan Shortlidge
592b70f00f
AST: Fix AvailabilityContext platform range for certain targets.
...
https://github.com/swiftlang/swift/pull/79807 caused a regression in which
`AvailabilityContext` stopped tracking the available version range for the
active platform domain for certain platforms. Fix this by reverting to checking
`AvailabilityDomain::isActive()` to determine when a given platform
`AvailabilityDomain` represents the target platform. The compiler's existing
mapping from target triple to platform domain is incomplete and it's not clear
to me whether fixing that could cause other regressions.
Resolves rdar://147413616.
2025-03-20 16:26:54 -07:00
Allan Shortlidge
0462cfda11
AST: Teach AvailabilityContext to represent version-less availability.
...
This enables potential unavailability diagnostics to be emitted for decls that
are only available in version-less domains.
2025-03-06 22:29:50 -08:00
Allan Shortlidge
cb778b7ce4
AST/Sema: Expand potential unavailability diagnostics to arbitrary domains.
...
When emitting potential unavailability diagnostics, don't assume that they can
only apply to the target platform `AvailabilityDomain`.
2025-03-04 19:41:04 -08:00
Josh Soref
4721852fcb
Spelling parse ( #42469 )
...
* spelling: appear
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: availability
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: available
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: coerce
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: collection
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: condition
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: conditional
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: delimiter
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: derived
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: diagnostics
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: disambiguation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: dropped
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: escaped
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: existence
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: expression
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: expressions
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: extended
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: furthermore
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: identifier
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: indentation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: inspect
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: miscellaneous
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: multiline
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: offset
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: passthrough
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: precede
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: prefix
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: receiver
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: reference
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: registered
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: representing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: returned
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: sequence
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: should
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: successfully
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: that
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: the
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: trivia
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: unsupported
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: whitespace
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2022-04-21 09:31:40 -07:00
Saleem Abdulrasool
7c968c6ccf
AST: support availability on Windows
...
Enable Windows specific availability annotations in Swift.
2020-11-09 20:03:52 -08:00