Skip to content

[6.2][cxx-interop] Fix not importing return type for certain functions #80585

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
Apr 8, 2025

Conversation

Xazax-hun
Copy link
Contributor

Explanation: Fixes that functions imported from C++ namespaces are taking a different code path than functions importing from the global namespace. This also fixes an error where the return type of a templated function is sometimes not imported.
Scope: C++ forward interop.
Issue: rdar://148735986
Risk: Low, the fix is targeted to make C++ functions in namespaces take a well tested code path that we already use for C++ functions in the global scope.
Testing: Added tests to test suite
Reviewer: @j-hui

Explanation: Fixes that functions imported from C++ namespaces are
taking a different code path than functions importing from the global
namespace. This also fixes an error where the return type of a templated
function is sometimes not imported.
Scope: C++ forward interop.
Issue: rdar://148735986
Risk: Low, the fix is targeted to make C++ functions in namespaces take
a well tested code path that we already use for C++ functions in the
global scope.
Testing: Added tests to test suite
Reviewer: John Hui
@Xazax-hun Xazax-hun added c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks labels Apr 7, 2025
@Xazax-hun Xazax-hun requested review from egorzhdan and j-hui April 7, 2025 10:59
@Xazax-hun Xazax-hun requested a review from a team as a code owner April 7, 2025 10:59
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun Xazax-hun merged commit fd35333 into release/6.2 Apr 8, 2025
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/not-imported-return-type-on-6.2 branch April 8, 2025 16:10
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++ 🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants