Skip to content

[cxx-interop] Fix extra indirection when exporting CFData arguments #74330

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
Jun 13, 2024

Conversation

Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Jun 12, 2024

The clang nodes associated with Swift's Core Foundation types can already be represented by a pointer. The interop code does not need to add an extra layer of indirection in those cases.

rdar://119840281

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jun 12, 2024
@Xazax-hun Xazax-hun changed the title [cxx-interop] Fix extra indirection when exporting CFData arguments/r… [cxx-interop] Fix extra indirection when exporting CFData arguments Jun 12, 2024
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

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, thanks!
Please also squash the commits when you'll be merging this 😉

@Xazax-hun Xazax-hun force-pushed the gaborh/core-foundation-types branch from f6eb56d to 7c29970 Compare June 12, 2024 15:33
@Xazax-hun
Copy link
Contributor Author

Looks like I had to make the test macOS only as CoreFoundation could not be imported on Linux.

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

…eturn values

The clang nodes associated with Swift's Core Foundation types can already be
represented by a pointer. The interop code does not need to add an extra
layer of indirection in those cases.

rdar://119840281
@Xazax-hun Xazax-hun force-pushed the gaborh/core-foundation-types branch from 7c29970 to ae1f804 Compare June 12, 2024 15:39
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun merged commit de9aefc into main Jun 13, 2024
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/core-foundation-types branch June 13, 2024 07:29
Xazax-hun added a commit that referenced this pull request Jun 24, 2024
[cxx-interop] Fix extra indirection when exporting CFData arguments
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