Evaluation order: Don't use this checker on C++11 code
This commit is contained in:
parent
90148ce2a1
commit
e6ff77d825
|
@ -2486,7 +2486,7 @@ void CheckOther::unusedLabelError(const Token* tok)
|
|||
void CheckOther::checkEvaluationOrder()
|
||||
{
|
||||
// This checker is not written according to C++11 sequencing rules
|
||||
if (!_tokenizer->isCPP() || _settings->standards.cpp != Standards::CPP11)
|
||||
if (_tokenizer->isCPP() && _settings->standards.cpp >= Standards::CPP11)
|
||||
return;
|
||||
|
||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||
|
|
Loading…
Reference in New Issue