[clang] docs(clang): add some missing flags (PR #209519)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 03:30:20 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.
----------------
steakhal wrote:
Please drop the AI stuff. The documentation is written for humans.
I think I've pointed this out once but because you force pushed and closed my comments I couldn't find that.
Because of this I'd recommend 3 actions:
- Drop the AI stuff.
- Do not force push. Just add one more commit to the branch and if you need to fetch from main, merge main into your branch.
- Do not close threads that was opened by someone else. This leaves the commenter to verify the claims that it was addressed appropriately.
https://github.com/llvm/llvm-project/pull/209519
More information about the cfe-commits
mailing list