swift
5d1ce01e - [cxx-interop] Import parameterized public ctors of C++ foreign ref types as Swift Initializer (#80449)

Commit
253 days ago
[cxx-interop] Import parameterized public ctors of C++ foreign ref types as Swift Initializer (#80449) Extends PR #79986 by adding support for calling parameterized C++ initializers from Swift. This patch synthesizes static factory methods corresponding to C++ parameterized constructors, allowing Swift to call them as Swift initializers (e.g., init(_:), init(_:_:), etc.). This patch also aded tests and logic to make sure that we emit no additional diagnostics when a C++ foreign ref type is just referred from Swift and its initializer is not explicitly called. rdar://148285251
Author
Parents
Loading