Skip to content

[APINotes] Add support for handling Clang modules carrying all versions of APINotes #75893

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 14, 2024

Controlled from Swift with -version-independent-apinotes, which, for the underlying Clang invocation enables -fswift-version-independent-apinotes, results in PCMs which aggregate all versioned APINotes wrapped in a SwiftVersionedAttr, with the intent to have the client pick and apply only those that match its current Swift version, discarding the rest.

Adapts Clang-side work as shown in swiftlang/llvm-project#9102.

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from 09a9578 to 5970e0f Compare August 14, 2024 19:41
@artemcm
Copy link
Contributor Author

artemcm commented Aug 14, 2024

@artemcm
Copy link
Contributor Author

artemcm commented Aug 15, 2024

swiftlang/llvm-project#9102
@swift-ci test Linux platform

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch 2 times, most recently from d6778a6 to f8bc917 Compare September 17, 2024 00:19
@artemcm
Copy link
Contributor Author

artemcm commented Sep 17, 2024

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from f8bc917 to c68a6a0 Compare October 23, 2024 21:36
@artemcm
Copy link
Contributor Author

artemcm commented Oct 23, 2024

1 similar comment
@artemcm
Copy link
Contributor Author

artemcm commented Oct 24, 2024

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from c68a6a0 to ab95963 Compare January 29, 2025 19:15
@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch 2 times, most recently from 3ca50b6 to dceacdd Compare June 17, 2025 21:07
@artemcm
Copy link
Contributor Author

artemcm commented Jun 17, 2025

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from dceacdd to 2e00d70 Compare June 17, 2025 22:39
@artemcm
Copy link
Contributor Author

artemcm commented Jun 17, 2025

1 similar comment
@artemcm
Copy link
Contributor Author

artemcm commented Jun 17, 2025

@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from 2e00d70 to 81aefd4 Compare June 24, 2025 17:41
@artemcm
Copy link
Contributor Author

artemcm commented Jun 25, 2025

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented Jun 25, 2025

…ns of APINotes

Controlled from Swift with '-version-independent-apinotes', which, for the underlying Clang invocation enables '-fswift-version-independent-apinotes', results in PCMs which aggregate all versioned APINotes wrapped in a 'SwiftVersionedAttr', with the intent to have the client pick and apply only those that match its current Swift version, discarding the rest.
@artemcm artemcm force-pushed the SwiftAPINotesVersionedProto branch from 81aefd4 to f7391d8 Compare June 25, 2025 20:56
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