Skip to content

[clang][module] Improve incomplete-umbrella warning #1860

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
Sep 25, 2020

Conversation

zixu-w
Copy link

@zixu-w zixu-w commented Sep 25, 2020

Change the warning message for -Wincomplete-umbrella to report the location of the umbrella header;

Differential Revision: https://reviews.llvm.org/D82118

(cherry picked from commit ed79827)

Change the warning message for -Wincomplete-umbrella to report the location of the umbrella header;

Differential Revision: https://reviews.llvm.org/D82118

(cherry picked from commit ed79827)
@zixu-w
Copy link
Author

zixu-w commented Sep 25, 2020

@swift-ci please test

@zixu-w zixu-w merged commit 45448a1 into apple/stable/20200714 Sep 25, 2020
@zixu-w zixu-w deleted the eng/incomplete-umbrella-improve branch September 25, 2020 23:04
beccadax added a commit to beccadax/swift that referenced this pull request Sep 28, 2020
In swiftlang/llvm-project#1860, the diagnostic for a missing import in an umbrella header was improved by moving it to the end of the file and including a fix-it suggesting the import that would be needed. This breaks two things on the Swift side:

• One Swift test assumes the old source location will be used.
• The `ClangSourceBufferImporter` doesn’t work correctly when a diagnostic is emitted at EOF. It tries to create a virtual file covering EOF..<EOF, but it’s not actually valid to start a virtual file at EOF—it would always be empty.

This commit corrects these issues, which should unblock the automerger.

Fixes rdar://69707827.
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.

1 participant