-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[interop][SwiftToCxx] initial generic struct support #60848
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
@swift-ci please test |
might need a bit of cleanup first. |
@swift-ci please test linux platform |
@swift-ci please test |
1 similar comment
@swift-ci please test |
Added support for passing/returning concrete-type bounded generics |
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test source compatibility |
printGenericTypeParamTypeName(genericParamType); | ||
}); | ||
os << ">\n"; | ||
os << "requires "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I missed this: does the generated header always require C++20?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment yes, this will be relaxed in the future.
…pecialized generic though)
…pe metadata accessor function for generic types
… to concrete generic params
…ncrete type params
6df0996
to
907b3a9
Compare
@swift-ci please test |
@swift-ci please test source compatibility |
@swift-ci please test |
@swift-ci please test source compatibility |
Initial patch only adds support for passing and returning direct generic values , without supporting concrete instantiations, or using them in generic context, or even methods on them. More to come.