From 90148ce2a1e9c335552d93fac83f2b876b0a60de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 25 Dec 2015 18:49:34 +0100 Subject: [PATCH] Evaluation order: Only use this checker on non-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 3bc3dfd50..95ac405db 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 (_settings->standards.cpp == Standards::CPP11) + if (!_tokenizer->isCPP() || _settings->standards.cpp != Standards::CPP11) return; const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();