aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/ux.texi
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/doc/ux.texi')
-rw-r--r--gcc/doc/ux.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/doc/ux.texi b/gcc/doc/ux.texi
index 2428d1a..22df88f 100644
--- a/gcc/doc/ux.texi
+++ b/gcc/doc/ux.texi
@@ -407,9 +407,12 @@ Use @code{auto_diagnostic_group} when issuing multiple related
diagnostics (seen in various examples on this page). This informs the
diagnostic subsystem that all diagnostics issued within the lifetime
of the @code{auto_diagnostic_group} are related. For example,
-@option{-fdiagnostics-format=json} will treat the first diagnostic
+@option{-fdiagnostics-add-output=sarif} will treat the first diagnostic
emitted within the group as a top-level diagnostic, and all subsequent
-diagnostics within the group as its children.
+diagnostics within the group as its children. Also, if a warning in the
+group is inhibited at nesting depth D, all subsequent notes at that depth
+or deeper will be inhibited as well, until an error or another warning
+is emitted, the depth decreases below D, or the group is popped.
@subsection Quoting
Text should be quoted by either using the @samp{q} modifier in a directive