aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2019-12-18 13:27:49 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2020-01-14 21:02:48 -0500
commitab7c7b46c35ed1be68d4c020a2f20ee96f68b64b (patch)
tree562838e4eecba69f256c99560ac6d7b29f807c41 /gcc/doc/invoke.texi
parent32077b693df8e3ed0424031a322df23822bf2f7e (diff)
downloadgcc-ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b.zip
gcc-ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b.tar.gz
gcc-ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b.tar.bz2
invoke.texi: update -fdiagnostics-show-cwe for analyzer
gcc/ChangeLog: * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of the analyzer options provide CWE identifiers.
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 180cde3..d8b94d8 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4076,7 +4076,8 @@ the vertical bars and the ``char *'' and ``long int'' text).
@opindex fdiagnostics-show-cwe
Diagnostic messages can optionally have an associated
@url{https://cwe.mitre.org/index.html, CWE} identifier.
-GCC itself does not do this for any of its diagnostics, but plugins may do so.
+GCC itself only provides such metadata for some of the @option{-fanalyzer}
+diagnostics. GCC plugins may also provide diagnostics with such metadata.
By default, if this information is present, it will be printed with
the diagnostic. This option suppresses the printing of this metadata.