This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Add option to SATest.py for extra checkers
ClosedPublic

Authored by RedDocMD on Jul 23 2021, 10:41 PM.

Details

Summary

This patch adds the flag extra-checkers to the sub-command build for
passing a comma separated list of additional checkers to include.

Diff Detail

Event Timeline

RedDocMD created this revision.Jul 23 2021, 10:41 PM
RedDocMD requested review of this revision.Jul 23 2021, 10:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 10:41 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

It turns out that there is already an option called extra-analyzer-config to pass analyzer configs, like setting ModelSmartPtrDereference to true

Looks good! Thanks!

vsavchenko accepted this revision.Jul 27 2021, 7:09 AM
This revision is now accepted and ready to land.Jul 27 2021, 7:09 AM

@RedDocMD Could you, please, explain the motivation and add at least one test to verify it works.

@RedDocMD Could you, please, explain the motivation and add at least one test to verify it works.

Motivation: I need to run these projects with the SmartPtrChecker enabled (which is an alpha checker, hence not enabled by default).
Test: This is more of a helper script, not a core library, so I think we can be a little relaxed with the testing thing.

This revision was landed with ongoing or failed builds.Aug 16 2021, 10:13 PM
This revision was automatically updated to reflect the committed changes.