Skip to content

Fix layering of cross-import and clang overlays #31199

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 3 commits into from
Apr 22, 2020

Conversation

beccadax
Copy link
Contributor

@beccadax beccadax commented Apr 22, 2020

If a clang module declares a cross-import overlay, but it also has a traditional overlay, we want the cross-import overlay to be registered with the SourceFile as sitting atop the traditional overlay. Otherwise module-qualified name lookups will bypass the cross-import overlay.

This PR also includes some NFC dumping improvements.

Fixes rdar://62139656

If a clang module declares a cross-import overlay, but it also has a traditional overlay, we want the cross-import overlay to be registered with the SourceFile as sitting atop the traditional overlay. Otherwise module-qualified name lookups will bypass the cross-import overlay.

Fixes rdar://62139656.
@beccadax
Copy link
Contributor Author

@nathawes All of your tests pass, but this could still affect something you've done.

@beccadax
Copy link
Contributor Author

@swift-ci test

@beccadax beccadax requested review from CodaFi and xymus April 22, 2020 07:11
@nathawes
Copy link
Contributor

@nathawes All of your tests pass, but this could still affect something you've done.

I think this change might fix some of the tooling issues you filed, and a lot more elegantly than the fix I've been working on too :-) I'll try it out tomorrow.

Copy link
Contributor

@xymus xymus left a comment

Choose a reason for hiding this comment

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

LGTM!

@beccadax beccadax merged commit 4619e2e into swiftlang:master Apr 22, 2020
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.

4 participants