Skip to content

[6.4.x] SymbolGraphGen: Expand anyAppleOS availability in symbol graphs#88957

Merged
tshortli merged 3 commits intoswiftlang:release/6.4.xfrom
tshortli:expand-any-apple-os-in-symbol-graphs-6.4.x
May 9, 2026
Merged

[6.4.x] SymbolGraphGen: Expand anyAppleOS availability in symbol graphs#88957
tshortli merged 3 commits intoswiftlang:release/6.4.xfrom
tshortli:expand-any-apple-os-in-symbol-graphs-6.4.x

Conversation

@tshortli
Copy link
Copy Markdown
Contributor

@tshortli tshortli commented May 8, 2026

  • Explanation: In documentation, @available(anyAppleOS 26, *) should be expanded to platform-specific availability attributes, rather than being rendered as an attribute for the platform "Any Apple OS". Also, teach swift-symbolgraph-extract to optionally limit platform availability in the symbol graph output to just active platforms when the -active-platform-availability-only flag is specified.
  • Scope: Affects symbol graph generation for Swift projects containing @available(anyAppleOS ...) attributes.
  • Issue/Radar: rdar://174557919
  • Original PR: SymbolGraphGen: Expand anyAppleOS availability in symbol graphs #88813
  • Risk: Low. Only changes symbol graph output, and only for code containing @available(anyAppleOS ...). Additional new behavior is behind an opt-in flag.
  • Testing: New swift-symbolgraph-extract tests.
  • Reviewer: @QuietMisdreavus

tshortli added 3 commits May 8, 2026 07:58
Anything that can be forward declared in ASTContext.h should be because it is
included by nearly every implementation file in the compiler. Avoiding these
includes allows these various options types to be changed without a full
rebuild.

NFC.
In documentation, `@available(anyAppleOS 26, *)` should be expanded to
platform-specific availability attributes, rather than being rendered as an
attribute for the platform "Any Apple OS".

Partially resolves rdar://174557919.
When -active-platform-availability-only is specified swift-symbolgraph-extract
should only emit availability metadata for the active platform (inferred from
the -target).

Resolves rdar://174557919.
@tshortli
Copy link
Copy Markdown
Contributor Author

tshortli commented May 8, 2026

@swift-ci please test

@tshortli tshortli marked this pull request as ready for review May 8, 2026 16:34
@tshortli tshortli requested a review from a team as a code owner May 8, 2026 16:34
@tshortli tshortli requested a review from nkcsgexi May 8, 2026 16:34
@tshortli tshortli enabled auto-merge May 8, 2026 16:34
@tshortli tshortli merged commit 7c70461 into swiftlang:release/6.4.x May 9, 2026
6 checks passed
@tshortli tshortli deleted the expand-any-apple-os-in-symbol-graphs-6.4.x branch May 9, 2026 02:34
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.

2 participants