Skip to content

[clang][deps] Ensure DiagnosticConsumer::finish is always called (#12… #10530

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

cyndyishida
Copy link

…7110)

When using the clang dependency scanner with an arbitrary DiagnosticConsumer, it is important that we always call finish(). Previously, if there was an error preventing us from reaching the scanning action, or if the command line contained no scannable actions we would fail to finish(), which would break some consumers (e.g. serialized diag consumer).

(cherry picked from commit e3cab30)

…m#127110)

When using the clang dependency scanner with an arbitrary
DiagnosticConsumer, it is important that we always call finish().
Previously, if there was an error preventing us from reaching the
scanning action, or if the command line contained no scannable actions
we would fail to finish(), which would break some consumers (e.g.
serialized diag consumer).

(cherry picked from commit e3cab30)
@cyndyishida cyndyishida requested a review from benlangmuir April 23, 2025 17:51
@cyndyishida cyndyishida requested a review from a team as a code owner April 23, 2025 17:51
@cyndyishida
Copy link
Author

@swift-ci please test

@cyndyishida cyndyishida requested a review from rapidsna April 24, 2025 13:59
Copy link

@rapidsna rapidsna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@cyndyishida cyndyishida merged commit 4179845 into swiftlang:swift/release/6.2 Apr 24, 2025
3 checks passed
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