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