#2700 (common logic or cut and paste errors) make duplicate branches inclnclusive
This commit is contained in:
parent
03cd57260a
commit
2db67863a7
|
@ -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;
|
||||
|
|
|
@ -129,6 +129,7 @@ private:
|
|||
|
||||
Settings settings;
|
||||
settings._checkCodingStyle = true;
|
||||
settings.inconclusive = true;
|
||||
|
||||
// Tokenize..
|
||||
Tokenizer tokenizer(&settings, this);
|
||||
|
|
Loading…
Reference in New Issue