[clang] [clang-tools-extra] [clang-tidy] Add SARIF output to clang-tidy (PR #219182)
Valentyn Yukhymenko via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 15:57:16 PDT 2026
================
@@ -30,6 +30,38 @@
namespace clang {
+SarifResultLevel getSarifResultLevel(DiagnosticsEngine::Level level) {
+ switch (level) {
+ case DiagnosticsEngine::Ignored:
+ llvm_unreachable("Invalid diagnostic type");
+ case DiagnosticsEngine::Note:
+ return SarifResultLevel::Note;
+ case DiagnosticsEngine::Remark:
+ return SarifResultLevel::None;
----------------
BaLiKfromUA wrote:
Actually, now I see that this code was here before. So probably my comment is not relevant.
Do we have tests that checks Sarif "level" for clang-tidy note?
https://github.com/llvm/llvm-project/pull/219182
More information about the cfe-commits
mailing list