]> granicus.if.org Git - clang/commit
[analyzer] Make inclusion/exclusion of checkers less ambiguous.
authorAnton Yartsev <anton.yartsev@gmail.com>
Wed, 28 Oct 2015 16:28:57 +0000 (16:28 +0000)
committerAnton Yartsev <anton.yartsev@gmail.com>
Wed, 28 Oct 2015 16:28:57 +0000 (16:28 +0000)
commit4f183b9d6b5aeb447cbdf9f2775fb3df62b1f21c
tree8599f5ddd1f9457079d09457d66bd3b7671104cb
parentea62bd9c83d2c271c3596f9e3342be8d34f9160f
[analyzer] Make inclusion/exclusion of checkers less ambiguous.

A checker may be enabled/disabled multiple times via -enable-checker and -disable-checker scan-build arguments. Currently the conflicting and repetitive arguments are passed to the analyzer as is.
With this patch only the last enable/disable of a particular checker is accepted and passed to the analyzer.
This change is mostly done for the upcoming 'config for scan-build' patch when multiple inclusions/exclusions of a checker are expected to be more common.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251524 91177308-0d34-0410-b5e6-96231b3b80d8
tools/scan-build/scan-build