invoke.texi: update -fdiagnostics-show-cwe for analyzer
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 18 Dec 2019 18:27:49 +0000 (13:27 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 15 Jan 2020 02:02:48 +0000 (21:02 -0500)
gcc/ChangeLog:
* doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
the analyzer options provide CWE identifiers.

gcc/ChangeLog
gcc/doc/invoke.texi

index 2837364..4da4d04 100644 (file)
@@ -1,5 +1,10 @@
 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):
        When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
        using get_pure_location.
index 180cde3..d8b94d8 100644 (file)
@@ -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.