[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] invoke.texi: update -fdiagnostics-show-cwe for analyzer
Martin Liska
marxin@gcc.gnu.org
Mon Mar 30 10:07:03 GMT 2020
https://gcc.gnu.org/g:ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b
commit ab7c7b46c35ed1be68d4c020a2f20ee96f68b64b
Author: David Malcolm <dmalcolm@redhat.com>
Date: Wed Dec 18 13:27:49 2019 -0500
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.
Diff:
---
gcc/ChangeLog | 5 +++++
gcc/doc/invoke.texi | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2837364ae16..4da4d045ce8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-14 David Malcolm <dmalcolm@redhat.com>
+
+ * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
+ the analyzer options provide CWE identifiers.
+
2020-01-14 David Malcolm <dmalcolm@redhat.com>
* tree-diagnostic-path.cc (path_summary::event_range::print):
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 180cde35424..d8b94d837a9 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.
More information about the Gcc-cvs
mailing list