Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization: Encode custom availability domains #80616

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Apr 7, 2025

When serializing @available attributes, if the attribute applies to a custom domain include enough information to deserialize the reference to that domain.

Additionally, remove the now unnecessary ClangImporter Swift lookup table support for availability domains. Clang now handles looking up serialized availability domain declarations in precompiled modules itself.

Finally, when printing .swiftinterfaces guard declarations that use the CustomAvailability feature.

Resolves rdar://138441265.

tshortli added 3 commits April 7, 2025 16:08
Partially revert swiftlang#80035 now that Clang
has its own APIs for querying serialized modules for the decl representing the
availability domain with a given name.
When serializing `@available` attributes, if the attribute applies to a custom
domain include enough information to deserialize the reference to that domain.

Resolves rdar://138441265.
@tshortli
Copy link
Contributor Author

tshortli commented Apr 7, 2025

swiftlang/llvm-project#10438

@swift-ci please test

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.

1 participant