[clang] [clang][docs] Update CommandLineUsage and UsersManual with some flags (PR #209519)

Ehren Bendler via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 30 07:27:31 PDT 2026


================
@@ -332,6 +332,27 @@ effect on formatting a simple conversion diagnostic, follow:
   ```
   t.c +3:11: warning: conversion specifies type 'char *' but the argument has type 'int'
   ```
+
+- **sarif**: Emit diagnostics as a [SARIF](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html) JSON
+  document. This is useful when diagnostics are consumed by tools, including AI
+  agents. SARIF diagnostics are written to standard error.
----------------
ebendler wrote:

Sorry, got stuck on the doc formatting changes and missed it here.

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


More information about the cfe-commits mailing list