[analyzer] Allow all checkers of a group to be enabled.

llvm-svn: 128512
This commit is contained in:
Argyrios Kyrtzidis 2011-03-29 23:57:41 +00:00
parent 437758cbe6
commit 84d7907797
1 changed files with 3 additions and 2 deletions

View File

@ -138,8 +138,9 @@ static void collectCheckers(const CheckNameOption *checkName,
if (const short *member = checkName->Members) {
if (enable) {
if (collectHidden || !StaticCheckerInfo[*member].Hidden)
checkers.insert(&StaticCheckerInfo[*member]);
for (; *member != -1; ++member)
if (collectHidden || !StaticCheckerInfo[*member].Hidden)
checkers.insert(&StaticCheckerInfo[*member]);
} else {
for (; *member != -1; ++member)
checkers.erase(&StaticCheckerInfo[*member]);