[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
Sat Sep 26 13:16:28 PDT 2026
================
@@ -276,11 +276,11 @@ void SarifDocumentWriter::endRun() {
{"enabled", R.DefaultConfiguration.Enabled},
{"level", resultLevelToStr(R.DefaultConfiguration.Level)},
{"rank", R.DefaultConfiguration.Rank}};
- json::Object Rule{
- {"name", R.Name},
- {"id", R.Id},
- {"fullDescription", json::Object{{"text", R.Description}}},
- {"defaultConfiguration", std::move(Config)}};
+ json::Object Rule{{"name", R.Name},
+ {"id", R.Id},
+ {"defaultConfiguration", std::move(Config)}};
+ if (!(Tool.getObject("driver")->getString("fullName") == "clang-tidy"))
----------------
BaLiKfromUA wrote:
Similar comment about hardcoding "clang-tidy" here.
https://github.com/llvm/llvm-project/pull/219182
More information about the cfe-commits
mailing list