Skip to content

[Sema] Diagnose type error on Clang type mismatch. #35305

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

Conversation

varungandhi-apple
Copy link
Contributor

@varungandhi-apple varungandhi-apple commented Jan 8, 2021

First commit has a crash test, third commit fixes the crash. I will investigate adding an implicit conversion later; for now, we just disallow any mismatch.

Fixes rdar://71904525.

@varungandhi-apple varungandhi-apple changed the title Diagnose type error on Clang type mismatch. [Sema] Diagnose type error on Clang type mismatch. Jan 8, 2021
@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from ee750a4 to cdfcde6 Compare January 8, 2021 03:21
@varungandhi-apple

This comment has been minimized.

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from cdfcde6 to f992cdf Compare January 8, 2021 19:19
@varungandhi-apple
Copy link
Contributor Author

@swift-ci smoke test

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from f992cdf to e205dfa Compare January 8, 2021 23:08
@varungandhi-apple

This comment has been minimized.

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from e205dfa to cb00d19 Compare January 12, 2021 15:53
@varungandhi-apple
Copy link
Contributor Author

Fixed an error where the boolean was not getting passed to certain SourceKit-related code.

@swift-ci smoke test

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from cb00d19 to 7d02d99 Compare January 14, 2021 02:29
@varungandhi-apple
Copy link
Contributor Author

Removed an unnecessary change for doc printing based on feedback from Argyrios. This should fix a SourceKit test that was failing.

@swift-ci smoke test

@varungandhi-apple

This comment has been minimized.

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from 7d02d99 to 14936db Compare January 14, 2021 21:17
@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from 14936db to 1112930 Compare January 14, 2021 22:35
@varungandhi-apple

This comment has been minimized.

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from 1112930 to 21e9991 Compare January 21, 2021 20:10
@varungandhi-apple

This comment has been minimized.

@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from 21e9991 to 74e74e5 Compare January 22, 2021 17:28
@varungandhi-apple

This comment has been minimized.

@varungandhi-apple

This comment has been minimized.

@swift-ci

This comment has been minimized.

When -experimental-print-full-convention is set, we should be printing
the full convention in diagnostics, doc comments etc.
@varungandhi-apple varungandhi-apple force-pushed the vg-diag-clang-type-mismatch branch from 74e74e5 to 86b123a Compare January 26, 2021 03:23
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please test

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 86b123a

@varungandhi-apple
Copy link
Contributor Author

Currently broken on macOS due to swift-syntax, waiting on swiftlang/swift-syntax#256

@varungandhi-apple
Copy link
Contributor Author

@swift-ci test source compatibility

@varungandhi-apple
Copy link
Contributor Author

@swift-ci test macOS

@varungandhi-apple varungandhi-apple merged commit d77d7fa into swiftlang:main Jan 27, 2021
@varungandhi-apple varungandhi-apple deleted the vg-diag-clang-type-mismatch branch January 27, 2021 04:50
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.

3 participants