Skip to content

[cas] Fix caching of diagnostics using getCustomDiagID #9905

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

benlangmuir
Copy link

@benlangmuir benlangmuir requested a review from a team as a code owner January 28, 2025 18:27
@benlangmuir
Copy link
Author

@swift-ci please test

@benlangmuir
Copy link
Author

@swift-ci please test llvm

philnik777 and others added 2 commits April 21, 2025 08:33
…n, take 2 (llvm#119712)

This is take two of llvm#70976. This iteration of the patch makes sure that
custom
diagnostics without any warning group don't get promoted by `-Werror` or
`-Wfatal-errors`.

This implements parts of the extension proposed in
https://discourse.llvm.org/t/exposing-the-diagnostic-engine-to-c/73092/7.

Specifically, this makes it possible to specify a diagnostic group in an
optional third argument.

(cherry picked from commit 0865ecc)
Custom diagnostics need to be serialized so that they can be registered
with the diagnostic engine during replay. If any custom diagnostics are
emitted, we capture all the known custom diagnostics. While this could
theoretically be wasteful, in practice custom diagnostics are created
only when they will be emitted. Note: this also fixes
clang/test/CAS/analyze-action.c.

(cherry picked from commit 61d414a)
(cherry picked from commit ee2a43d)
@benlangmuir benlangmuir force-pushed the cache-custom-diags-stable branch from 032adbf to 69aedb4 Compare April 21, 2025 16:02
@benlangmuir benlangmuir requested a review from a team as a code owner April 21, 2025 16:02
@benlangmuir benlangmuir changed the base branch from stable/20240723 to swift/release/6.2 April 21, 2025 16:03
@benlangmuir
Copy link
Author

@swift-ci please test

@benlangmuir
Copy link
Author

@swift-ci please test llvm

@benlangmuir
Copy link
Author

All three of these failures are unrelated:

@benlangmuir
Copy link
Author

@swift-ci please test macOS

@benlangmuir
Copy link
Author

@swift-ci please test llvm

@benlangmuir
Copy link
Author

@swift-ci please test llvm

@benlangmuir
Copy link
Author

@swift-ci please test

@benlangmuir
Copy link
Author

@swift-ci please test Windows

@akyrtzi akyrtzi merged commit c89ea13 into swiftlang:swift/release/6.2 Apr 23, 2025
5 checks passed
@benlangmuir benlangmuir deleted the cache-custom-diags-stable branch April 23, 2025 21:02
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