aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-11-15 15:18:43 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-11-15 15:18:43 +0000
commit1a50c42806eb3f22047e44669c26721501b9d164 (patch)
treed48077311dcb3023fa1e9e5d1d5e04598cc4e769 /gcc
parent478dd60ddcf17773ebd1af367c9dcaee2401f797 (diff)
downloadgcc-1a50c42806eb3f22047e44669c26721501b9d164.zip
gcc-1a50c42806eb3f22047e44669c26721501b9d164.tar.gz
gcc-1a50c42806eb3f22047e44669c26721501b9d164.tar.bz2
doc/ux.texi: auto_diagnostic_group now does something
As of r266186, auto_diagnostic_group is now user-visible (via -fdiagnostics-format=json), so update the diagnostic guidelines accordingly. gcc/ChangeLog: * doc/ux.texi (Group logically-related diagnostics): Move discussion of auto_diagnostic_group into this new subsection. Give an example of where this grouping is used. From-SVN: r266187
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/ux.texi9
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8555d42..45fbfe1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2018-11-15 David Malcolm <dmalcolm@redhat.com>
+ * doc/ux.texi (Group logically-related diagnostics): Move
+ discussion of auto_diagnostic_group into this new subsection.
+ Give an example of where this grouping is used.
+
+2018-11-15 David Malcolm <dmalcolm@redhat.com>
+
PR other/19165
* Makefile.in (OBJS): Move json.o to...
(OBJS-libcommon): ...here and add diagnostic-format-json.o.
diff --git a/gcc/doc/ux.texi b/gcc/doc/ux.texi
index 3b395f2..47b4492 100644
--- a/gcc/doc/ux.texi
+++ b/gcc/doc/ux.texi
@@ -376,12 +376,15 @@ where the @code{double} and @code{int} are colorized to highlight them.
@c %H and %I were added in r248698.
+@subsection Group logically-related diagnostics
+
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. (Currently it doesn't
-do anything with this information, but we may implement that in the
-future).
+of the @code{auto_diagnostic_group} are related. For example,
+@option{-fdiagnostics-format=json} will treat the first diagnostic
+emitted within the group as a top-level diagnostic, and all subsequent
+diagnostics within the group as its children.
@subsection Quoting
Text should be quoted by either using the @samp{q} modifier in a directive