Skip to content

[🍒][cxx-interop] Allow specific getters/setters to be imported as computed properties. #65020

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

Conversation

zoecarver
Copy link
Contributor

Picking #65010

Adds SWIFT_COMPUTED_PROPERTY. Refs -cxx-interop-getters-setters-as-properties.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves #NNNNN, fix apple/llvm-project#MMMMM.

…ed properties.

Adds `SWIFT_COMPUTED_PROPERTY`. Refs `-cxx-interop-getters-setters-as-properties`.
@zoecarver zoecarver requested a review from a team as a code owner April 7, 2023 22:02
@zoecarver
Copy link
Contributor Author

@swift-ci please test

@zoecarver
Copy link
Contributor Author

zoecarver commented Apr 12, 2023

Explanation: Leverages the previously implemented -cxx-interop-getters-setters-as-properties feature to allow specific (annotated) methods to be imported as computed properties in Swift (without the experimental feature flag).
Risk: Low. Only applies to C++ interop; is exclusively opt-in (even after interop is enabled). This is change to the syntax and not a change to underlying functionality.
rdar://107757246

@zoecarver zoecarver merged commit e635bc0 into swiftlang:release/5.9 Apr 18, 2023
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants