[scan-build-py] Add sarif-html support in scan-build-py
authorDaniel Hwang <arkay@google.com>
Tue, 23 Feb 2021 22:36:49 +0000 (14:36 -0800)
committerMarco Vanotti <mvanotti@google.com>
Tue, 23 Feb 2021 22:41:48 +0000 (14:41 -0800)
commit97a304cc8f949e40693d63b855b4b24bc81fa729
tree087c37315fa083bcc544b58ce7973fa8b3f9a488
parent4691405ba983d7b1efc3e72d17d09c1a497afe90
[scan-build-py] Add sarif-html support in scan-build-py

Update scan-build-py to be able to trigger sarif-html output format in clang static analyzer.

NOTE: testcase `test_sarif_and_html_creates_sarif_and_html_reports` will fail if the default clang does not have change https://reviews.llvm.org/D96389 . This can be remediated by pointing the default clang in arguments.py to a locally built clang. I was unable to figure out where these particular tests for scan-build-py are being invoked (aside from manually), so any help there would be greatly appreciated.

Reviewed By: aabbaabb, xazax.hun

Differential Revision: https://reviews.llvm.org/D96570
clang/tools/scan-build-py/libscanbuild/analyze.py
clang/tools/scan-build-py/libscanbuild/arguments.py
clang/tools/scan-build-py/libscanbuild/report.py
clang/tools/scan-build-py/tests/functional/cases/test_from_cdb.py