[clang-tidy] Dump effective diagnostics level in YAML output
authorDmitry Polukhin <dmitry.polukhin@gmail.com>
Thu, 6 Oct 2022 14:56:19 +0000 (07:56 -0700)
committerDmitry Polukhin <dmitry.polukhin@gmail.com>
Wed, 12 Oct 2022 09:03:56 +0000 (02:03 -0700)
commit5d12b13b0b26bc58b02ee23c369da8b83240cceb
tree24f79ff8738aeb44d7a0be39daba8f5975eda53e
parent2a26a445b342b0fa6090e8e99bf1fd0f18f6f7df
[clang-tidy] Dump effective diagnostics level in YAML output

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

Differential Revision: https://reviews.llvm.org/D135367
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/test/clang-tidy/infrastructure/export-diagnostics.cpp