Skip to content

[nfc][cxx-interop] Add three requests ClangDirectLookupRequest, CXXNamespaceMemberLookup, and ClangRecordMemberLookup. #39436

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

Closed
wants to merge 1 commit into from

Conversation

zoecarver
Copy link
Contributor

None of these requests are used, so this is a non-functional change.

Based on #39435. Please do not review the first commit, just click on the second commit and review that one. If you have comments on the first commit, please put them in #39435.

Refs #38675.

…XNamespaceMemberLookup`, and `ClangRecordMemberLookup`.

None of these requests are used, so this is a non-functional change.
@zoecarver zoecarver force-pushed the lazy-pt8-add-requests branch from 0f86e25 to 737597d Compare October 8, 2021 23:36
@zoecarver zoecarver changed the title [nfc][cxx-interop] Add three requests ClangDirectLookupRequest, CXXNamespaceMemberLookup, and ClangRecordMemberLookup. [nfc][cxx-interop] Add three requests ClangDirectLookupRequest, CXXNamespaceMemberLookup, and ClangRecordMemberLookup. Oct 8, 2021
@zoecarver
Copy link
Contributor Author

Friendly ping. I'd love to get a review of this :)

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows platform.

@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows.

2 similar comments
@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows.

@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows.

@zoecarver
Copy link
Contributor Author

(re-testing after re-branch.)

@swift-ci please smoke test.

Copy link
Contributor

@beccadax beccadax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this code actually being used yet? If not, I’m not sure we really ought to merge it at this stage—we have no way to test it or see that it actually works.

zoecarver added a commit to zoecarver/swift that referenced this pull request Oct 13, 2021
If possible, add imported members to the StructDecl's LookupTable rather than adding them directly as members. This will fix the issues with ordering that swiftlang#39436 poorly attempted to solve during IRGen.

This also allows us to break out most of the test changes from swiftlang#39436.
@zoecarver
Copy link
Contributor Author

Is this code actually being used yet? If not, I’m not sure we really ought to merge it at this stage—we have no way to test it or see that it actually works.

No, it's not. It gets used in #38675. I pulled it out because I thought it would be easier to review. Anyway, it's now merged back into #38675. Thanks for the review!

@zoecarver zoecarver closed this Oct 14, 2021
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