Skip to content

[cxx-interop] Make sure to use TUScope when looking up clang decls. #41874

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
Mar 18, 2022

Conversation

zoecarver
Copy link
Contributor

When we look up a name directly, make sure we provide a scope, this is required when C++ interop is enabled.

This issue was exposed when we look up if an NSString is hashable. There is a special case for classes that inherit from NSObject, but we didn't see that, because we couldn't find NSObject (because lookup failed).

When we look up a name directly, make sure we provide a scope, this is required when C++ interop is enabled.

This issue was exposed when we look up if an NSString is hashable. There is a special case for classes that inherit from NSObject, but we didn't see that, because we couldn't find NSObject (because lookup failed).
@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Mar 17, 2022
@zoecarver
Copy link
Contributor Author

@swift-ci please test.

@zoecarver
Copy link
Contributor Author

@swift-ci please test macOS.

@zoecarver
Copy link
Contributor Author

@swift-ci please test macOS

@zoecarver
Copy link
Contributor Author

@swift-ci please test macOS

1 similar comment
@zoecarver
Copy link
Contributor Author

@swift-ci please test macOS

@zoecarver zoecarver merged commit 5361369 into swiftlang:main Mar 18, 2022
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