Skip to content

[Clang importer] Import Swift declaration modifiers from swift_attr. #37975

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

Merged

Conversation

DougGregor
Copy link
Member

Explanation: Allows Swift declaration modifiers to be added via Clang's __attribute__((swift_attr("..."))). This is important for nonisolated, so that Objective-C declaration can be marked as nonisolated.
Scope: Only changes the mapping of the Clang attribute into Swift, for a syntax that is currently unused.
Radar/SR Issue: rdar://79402200
Risk: Low.
Testing: PR testing and CI on main.
Original PR: #37970

In addition to importing Swift attributes spelled with the C
`__attribute__((swift_attr("...")))`, also import declaration modifiers,
including `nonisolated`.

Fixes rdar://79402200.
@DougGregor DougGregor requested a review from a team as a code owner June 17, 2021 18:52
@DougGregor
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a4b6743

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a4b6743

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a4b6743

@tkremenek tkremenek merged commit 2018942 into swiftlang:release/5.5 Jun 21, 2021
@DougGregor DougGregor deleted the clang-swift-attr-for-modifiers-5.5 branch June 21, 2021 20:22
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants