This is an archive of the discontinued LLVM Phabricator instance.

[scan-build-py] Add sarif-html support in scan-build-py
ClosedPublic

Authored by isthismyaccount on Feb 11 2021, 7:23 PM.

Details

Summary

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.

Diff Detail

Event Timeline

isthismyaccount requested review of this revision.Feb 11 2021, 7:23 PM
isthismyaccount edited the summary of this revision. (Show Details)
isthismyaccount edited the summary of this revision. (Show Details)Feb 11 2021, 7:26 PM
This revision is now accepted and ready to land.Feb 18 2021, 6:02 PM
isthismyaccount requested review of this revision.Feb 22 2021, 1:30 PM

Hi Gabor, do you mind taking a look at this? Would love to get a couple more eyes on this change since we're not super familiar with the code.

xazax.hun accepted this revision.Feb 23 2021, 7:20 AM

LGTM!

It would be nice, if you could also open a PR for the github version: https://github.com/rizsotto/scan-build

Unfortunately, we have two versions of scan-build-py that are slightly different, but it would be nice if the two would have feature parity :)

This revision is now accepted and ready to land.Feb 23 2021, 7:20 AM

@xazax.hun Happy to do so, it occurred to me that this change is predicated by this: https://reviews.llvm.org/D94251 which I did not have the foresight to ask you to review. When you have the chance, do you mind taking a look at that since it's a little more substantial than this one? If both look good, I'll attempt to add both changes to the other scan-build.

Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2021, 2:42 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript