When garabage code is checked, iterate over all checks.
This commit is contained in:
parent
fa7645ec71
commit
7c75386ab2
|
@ -76,13 +76,11 @@ private:
|
||||||
tokenizer.tokenize(istr, filename);
|
tokenizer.tokenize(istr, filename);
|
||||||
tokenizer.simplifyTokenList2();
|
tokenizer.simplifyTokenList2();
|
||||||
|
|
||||||
// TODO: Run more checks
|
// call all "runChecks" in all registered Check classes
|
||||||
CheckOther checkOther(&tokenizer, &settings, this);
|
for (std::list<Check *>::const_iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) {
|
||||||
checkOther.runChecks(&tokenizer, &settings, this);
|
(*it)->runChecks(&tokenizer, &settings, this);
|
||||||
checkOther.runSimplifiedChecks(&tokenizer, &settings, this);
|
(*it)->runSimplifiedChecks(&tokenizer, &settings, this);
|
||||||
CheckStl checkStl(&tokenizer, &settings, this);
|
}
|
||||||
checkStl.runChecks(&tokenizer, &settings, this);
|
|
||||||
checkStl.runSimplifiedChecks(&tokenizer, &settings, this);
|
|
||||||
|
|
||||||
return tokenizer.tokens()->stringifyList(false, false, false, true, false, 0, 0);
|
return tokenizer.tokens()->stringifyList(false, false, false, true, false, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue