Skip to content
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

fix(lib): fix api header C++ interop #3534

Conversation

MattGuerrette
Copy link
Contributor

Apple Clang complains about C header files being included with an extern "C" linkage block when consuming those headers as part of Swift modules with C++/Objective-C++ interoperability.

This blocks Swift projects that consume SwiftTreeSitter, either directly or indirectly, from enabling C++ interoperability mode.

@ObserverOfTime ObserverOfTime changed the title Fix linkage with C++ interop in Swift on Apple Clang fix(lib): fix api header C++ interop Aug 18, 2024
@ObserverOfTime ObserverOfTime merged commit 3c7c17b into tree-sitter:master Aug 18, 2024
12 checks passed
@MattGuerrette MattGuerrette deleted the dev/mguerrette/fix-cpp-linkage-swift branch August 23, 2024 03:24
imfuxiao pushed a commit to imfuxiao/tree-sitter that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants