Skip to content

[cxx-interop] Support Swiftifying C++ constructors #81947

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
merged 1 commit into from
Jun 4, 2025

Conversation

Xazax-hun
Copy link
Contributor

Unfortunately, there is no common abstraction for initializers and functions in SwiftSyntax, so this PR rolls our own. Alternatively, we could probably achieve something similar with a new protocol, but we only needed a handful of fields so this change keeps it simple.

rdar://152112660

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

Unfortunately, there is no common abstraction for initializers and
functions in SwiftSyntax, so this PR rolls our own. Alternatively, we
could probably achieve something similar with a new protocol, but we
only needed a handful of fields so this change keeps it simple.

rdar://152112660
@Xazax-hun Xazax-hun force-pushed the gaborh/swiftify-initializers branch from 17eeff2 to d5fadda Compare June 4, 2025 09:06
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun merged commit a8d979e into main Jun 4, 2025
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/swiftify-initializers branch June 4, 2025 16:41
Xazax-hun added a commit that referenced this pull request Jun 6, 2025
Explanation: We did not have support to generate swiftified overload for
initializers. This PR adds that support.
Issue: rdar://152112660
Risk: Low, the feature is localized to swiftified overloads.
Testing: Regression test added.
Original PR: #81947
Reviewer: @hnrklssn
Xazax-hun added a commit that referenced this pull request Jun 6, 2025
Explanation: We did not have support to generate swiftified overload for
initializers. This PR adds that support.
Issue: rdar://152112660
Risk: Low, the feature is localized to swiftified overloads.
Testing: Regression test added.
Original PR: #81947
Reviewer: @hnrklssn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants