[clang] [clang-tools-extra] [clang-tidy] Add SARIF output to clang-tidy (PR #219182)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 04:00:43 PST 2026
================
@@ -192,6 +192,9 @@ An overview of all the command-line options:
--export-fixes=<filename> - YAML file to store suggested fixes in. The
stored fixes can be applied to the input source
code with clang-apply-replacements.
+ --sarif-export=<filename> - File in which to store diagnostics in SARIF format.
+ Use '-' to write to stdout instead of the usual
+ diagnostic output.
----------------
matthew-j-code wrote:
I've updated it to now be --experimental-sarif-export, all instances + test files have also been updated. However, this new flag goes over the name limit for clang-tidy options in index.rst into the checks description. If you could let me know if that's fine.
https://github.com/llvm/llvm-project/pull/219182
More information about the cfe-commits
mailing list