Skip to content
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

[cas] Fix caching of diagnostics using getCustomDiagID #9905

Open
wants to merge 2 commits into
base: stable/20240723
Choose a base branch
from

Conversation

benlangmuir
Copy link

philnik777 and others added 2 commits January 28, 2025 10:07
…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 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

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.

2 participants