[clang] [clang-tools-extra] [clang-tidy] Add SARIF output to clang-tidy (PR #219182)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 04:05:38 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.
----------------
vbvictor wrote:

Could you share how it will look like in `clang-tidy --help`.
IIRC this page mimics what tidy is printing in console.

https://github.com/llvm/llvm-project/pull/219182


More information about the cfe-commits mailing list