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)
commite2b1a9c789648cba5e9f1ee3ba134ffaf9829420
tree4e31ff46dc770ab6765765bdf6396a5eeb134ecc
parentdf8802da7a2dd2f0545f800d4f41783a01cafb2b
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.

llvm-svn: 345628
clang/include/clang/StaticAnalyzer/Core/Analyses.def
clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
clang/lib/StaticAnalyzer/Core/CMakeLists.txt
clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp [new file with mode: 0644]
clang/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-diagnostics-taint-test.c.sarif [new file with mode: 0644]
clang/test/Analysis/diagnostics/sarif-diagnostics-taint-test.c [new file with mode: 0644]