Skip to content

[cxx-interop] Support types nested in extensions #82712

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
Jul 2, 2025

Conversation

Xazax-hun
Copy link
Contributor

The generated header did not compile due to a bug that prevented us from referencing the correct namespaces derived from the nominal type's name (an extension does not have a name). Moreover, we did not generate forward declarations for the members of the extensions for classes and enums (but we did for structs). This change also removes a workaround that emitted String::Index as _String_Index.

rdar://153221450

The generated header did not compile due to a bug that prevented us from
referencing the correct namespaces derived from the nominal type's name
(an extension does not have a name). Moreover, we did not generate
forward declarations for the members of the extensions for classes and
enums (but we did for structs). This change also removes a workaround
that emitted String::Index as _String_Index.

rdar://153221450
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jul 2, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun merged commit a7e19f3 into swiftlang:main Jul 2, 2025
3 checks passed
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.

2 participants