Evaluation order: Only use this checker on non-C++11 code

This commit is contained in:
Daniel Marjamäki 2015-12-25 18:45:46 +01:00
parent 24438c326e
commit 55779a5772
1 changed files with 4 additions and 0 deletions

View File

@ -2485,6 +2485,10 @@ void CheckOther::unusedLabelError(const Token* tok)
void CheckOther::checkEvaluationOrder()
{
// This checker is not written according to C++11 sequencing rules
if (_settings->standards.cpp == Standards::CPP11)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
const std::size_t functions = symbolDatabase->functionScopes.size();
for (std::size_t i = 0; i < functions; ++i) {