analyzer: add CWE identifier URLs to docs
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 28 Jul 2022 21:21:29 +0000 (17:21 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 28 Jul 2022 21:21:29 +0000 (17:21 -0400)
commit9c60338061bf3679f925be12273dc723b3913b75
treed3ad928adea5efbf335fa449d1bbe6ef37f85f3b
parent9cac6811cf0d6c1437426aaf13ea52c16c16fc80
analyzer: add CWE identifier URLs to docs

gcc/analyzer/ChangeLog:
* sm-malloc.cc (free_of_non_heap::emit): Add comment about CWE.
* sm-taint.cc (tainted_size::emit): Likewise.

gcc/ChangeLog:
* doc/invoke.texi (-fdiagnostics-show-cwe): Use uref rather than
url.
(Static Analyzer Options): Likewise.  Add urefs for all of the
warnings that have associated CWE identifiers.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/sm-malloc.cc
gcc/analyzer/sm-taint.cc
gcc/doc/invoke.texi