From e6ff77d8251594a469ac5e9dc1b83ad1392438fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 25 Dec 2015 18:57:01 +0100 Subject: [PATCH] Evaluation order: Don't use this checker on C++11 code --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 95ac405db..84ec60836 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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();