This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Dump effective diagnostics level in YAML output
ClosedPublic

Authored by DmitryPolukhin on Oct 6 2022, 8:02 AM.

Details

Summary

Before this patch YAML output had default diagnostic level instead of effective level reported to the user on stdout. Wrapper scripts for clang-tidy usually use YAML output and they pick wrong diagnostics level without this patch.

Test Plan: check-clang-tools

Diff Detail

Event Timeline

DmitryPolukhin created this revision.Oct 6 2022, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 8:02 AM
DmitryPolukhin requested review of this revision.Oct 6 2022, 8:02 AM
njames93 accepted this revision.Oct 7 2022, 8:31 AM

LGTM, just maybe include a test case where a warning from a clang-tidy check is promoted to an error as well.

This revision is now accepted and ready to land.Oct 7 2022, 8:31 AM

Added testcase for clang-tidy diagnostics as with --warnings-as-errors

LGTM, just maybe include a test case where a warning from a clang-tidy check is promoted to an error as well.

Thank you for the review!
I've added a test case for clang-tidy check.