HomePhabricator

[analyzer] Analysis: Silence checkers

Authored by Charusso on Aug 15 2019, 6:53 PM.

Description

[analyzer] Analysis: Silence checkers

Summary:
This patch introduces a new analyzer-config configuration:
-analyzer-config silence-checkers
which could be used to silence the given checkers.

It accepts a semicolon separated list, packed into quotation marks, e.g:
-analyzer-config silence-checkers="core.DivideZero;core.NullDereference"

It could be used to "disable" core checkers, so they model the analysis as
before, just if some of them are too noisy it prevents to emit reports.

This patch also adds support for that new option to the scan-build.
Passing the option -disable-checker core.DivideZero to the scan-build
will be transferred to -analyzer-config silence-checkers=core.DivideZero.

Reviewed By: NoQ, Szelethus

Differential Revision: https://reviews.llvm.org/D66042

llvm-svn: 369078

Details

Committed
CharussoAug 15 2019, 6:53 PM
Reviewer
NoQ
Differential Revision
D66042: [analyzer] Analysis: Silence checkers
Parents
rG02cbdbdabfc1: [PowerPC] add testcases for folding frame offset - NFC
Branches
Unknown
Tags
Unknown