[PATCH] D65211: [analyzer] Update the SARIF exporter to SARIF 2.1

Joe Ranieri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 07:06:51 PDT 2019


jranieri-grammatech created this revision.
jranieri-grammatech added reviewers: NoQ, george.karpenkov, aaron.ballman.
Herald added subscribers: cfe-commits, Charusso, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Herald added a project: clang.
jranieri-grammatech added a parent revision: D65209: [analyzer] Fix a SARIF exporter crash with macro expansions.

This updates the SARIF exporter to produce SARIF 2.1 output. The bulk of the diffs come from two changes to SARIF:

- Rename run.files to run.artifacts, fileLocation to artifactLocation <https://github.com/oasis-tcs/sarif-spec/issues/309>
- Define tool component object to represent tool driver and its extensions/plugins <https://github.com/oasis-tcs/sarif-spec/issues/179>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65211

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65211.211496.patch
Type: text/x-patch
Size: 22467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190724/77932162/attachment-0001.bin>


More information about the cfe-commits mailing list