#2700 (common logic or cut and paste errors) make duplicate branches inclnclusive

This commit is contained in:
Robert Reif 2011-05-08 13:22:42 -04:00
parent 03cd57260a
commit 2db67863a7
2 changed files with 4 additions and 0 deletions

View File

@ -3190,6 +3190,9 @@ void CheckOther::checkDuplicateBranch()
if (!_settings->_checkCodingStyle)
return;
if (!_settings->inconclusive)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
std::list<Scope>::const_iterator scope;

View File

@ -129,6 +129,7 @@ private:
Settings settings;
settings._checkCodingStyle = true;
settings.inconclusive = true;
// Tokenize..
Tokenizer tokenizer(&settings, this);