]> granicus.if.org Git - clang/commit
Add the ability to output static analysis results to SARIF.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 30 Oct 2018 18:55:38 +0000 (18:55 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 30 Oct 2018 18:55:38 +0000 (18:55 +0000)
commit962c092aae53360ab4d5b1adac78963694b5963f
tree3788aa843ec18da1553742c789df78243af792a8
parent36950cc24f63a783faf9a3db208120b496fd8a84
Add the ability to output static analysis results to SARIF.

This allows users to specify SARIF (https://github.com/oasis-tcs/sarif-spec) as the output from the clang static analyzer so that the results can be read in by other tools, such as extensions to Visual Studio and VSCode, as well as static analyzers like CodeSonar.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345628 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/Analyses.def
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
lib/StaticAnalyzer/Core/CMakeLists.txt
lib/StaticAnalyzer/Core/SarifDiagnostics.cpp [new file with mode: 0644]
test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif [new file with mode: 0644]
test/Analysis/diagnostics/sarif-diagnostics-taint-test.c [new file with mode: 0644]