[PATCH] D53982: Output "rule" information in SARIF

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 1 09:31:51 PDT 2018


aaron.ballman created this revision.
aaron.ballman added reviewers: george.karpenkov, dcoughlin, zaks.anna.

SARIF allows you to export descriptions about rules that are present in the SARIF log. This patch exposes the help text table generated into Checkers.inc as the rule's "full description" and exports all of the rules present in the analysis output.

This information is useful for analysis result viewers like CodeSonar.


https://reviews.llvm.org/D53982

Files:
  lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
  test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif
  test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif
  test/Analysis/diagnostics/sarif-multi-diagnostic-test.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53982.172139.patch
Type: text/x-patch
Size: 14374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181101/22d35745/attachment-0001.bin>


More information about the cfe-commits mailing list