-
Notifications
You must be signed in to change notification settings - Fork 10.5k
When qualifying Clang types with a module, make sure we choose a visible module #32465
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
Conversation
78fe945
to
57978df
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I also would like @nkcsgexi to take a look.
This comment has been minimized.
This comment has been minimized.
@swift-ci Please test |
This comment has been minimized.
This comment has been minimized.
@swift-ci Please test |
@gribozavr I've now addressed all of your review comments. |
@nkcsgexi, could you take a look at this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Sorry for the delay.
@swift-ci Please test |
Build failed |
Build failed |
…ng a C struct in different modules. The newly added test fails.
module. Clang types need special treatment because multiple Clang modules can contain the same type declarations from a textually included header, but not all of these modules may be visible. This fixes https://bugs.swift.org/browse/SR-13032
Putting the test in a separate directory makes it clearer that all of the input files are related and create a particular test case interaction.
…odules. Also, make sure we only process a module once.
7543c52
to
9973f62
Compare
@swift-ci please test |
I believe this PR is now good to go, all comments are addressed and we have 2 approvals already, so unless anybody comments, we will merge it tomorrow. |
@swift-ci please test |
* 'main' of github.com:apple/swift: When qualifying Clang types with a module, make sure we choose a visible module (swiftlang#32465)
Clang types need special treatment because multiple Clang modules can contain the same type declarations from a textually included header, but not all of these modules may be visible.
Fixes #55477
The newly added test breaks without this fix.