-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ClangImporter] Filter import-as-member decls by preferred submodule. #10612
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
[ClangImporter] Filter import-as-member decls by preferred submodule. #10612
Conversation
Coming up with this still-very-brittle test case was a pain. @swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
@@ -0,0 +1,5 @@ | |||
#import <Foundation.h> |
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.
Whoops, meant to remove this line.
That is, if a member is redeclarable, use the module of the definition if possible, and the canonical declaration otherwise. This is consistent with what we do when we actually import the declaration. Without this, we can end up dropping declarations. rdar://problem/32816381
132737e
to
fc8a24a
Compare
@swift-ci Please test |
Build failed |
Build failed |
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
…swiftlang#10612) That is, if a member is redeclarable, use the module of the definition if possible, and the canonical declaration otherwise. This is consistent with what we do when we actually import the declaration. Without this, we can end up dropping declarations. rdar://problem/32816381
…swiftlang#10612) That is, if a member is redeclarable, use the module of the definition if possible, and the canonical declaration otherwise. This is consistent with what we do when we actually import the declaration. Without this, we can end up dropping declarations. rdar://problem/32816381
That is, if a member is redeclarable, use the module of the definition if possible, and the canonical declaration otherwise. This is consistent with what we do when we actually import the declaration. Without this, we can end up dropping declarations.
rdar://problem/32816381