Skip to content

[cxx-interop] Support optional generic cases in enums #75100

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 18, 2024

Conversation

Xazax-hun
Copy link
Contributor

This PR implements proper support for optional generic associated values in enum cases. Most of the code changes are supporting generic types in more contexts in the printer, the rest are making sure we handle the null pointer case when we try to get the declaration from the type that represents a generic parameter.

rdar://131112273

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jul 9, 2024
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun force-pushed the gaborh/support-optional-generic-in-enum branch from 5c40229 to 35edc3a Compare July 9, 2024 13:06
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

This PR implements proper support for optional generic associated values
in enum cases. Most of the code changes are supporting generic types in
more contexts in the printer, the rest are making sure we handle the
null pointer case when we try to get the declaration from the type that
represents a generic parameter.

rdar://131112273
@Xazax-hun Xazax-hun force-pushed the gaborh/support-optional-generic-in-enum branch from 35edc3a to b5384bc Compare July 9, 2024 15:08
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun
Copy link
Contributor Author

Looks like there was an infra failure.

@swift-ci please smoke test

@egorzhdan egorzhdan requested a review from beccadax July 11, 2024 12:04
Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but let's wait for @beccadax to take a look as well 🙂

@Xazax-hun Xazax-hun merged commit 439cbe6 into main Jul 18, 2024
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/support-optional-generic-in-enum branch July 18, 2024 22:14
@Xazax-hun
Copy link
Contributor Author

Looks like Becca did not have the bandwidth, but I am happy to address any concerns in a follow-up PR.

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