#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) if (!_settings->_checkCodingStyle)
return; return;
if (!_settings->inconclusive)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase(); const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
std::list<Scope>::const_iterator scope; std::list<Scope>::const_iterator scope;

View File

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