From 08cd0cd0f7c6ce013667734537ca003541d9c90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 13 Dec 2013 06:40:35 +0100 Subject: [PATCH] CheckOther::checkDuplicateExpression: Added TODO comment to readd checking for duplicate separated expressions --- lib/checkother.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 3da00b0d8..26993eb00 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2922,6 +2922,7 @@ void CheckOther::checkDuplicateExpression() constStandardFunctions.insert("strcmp"); // Experimental implementation + // TODO: check for duplicate separated expressions: (a==1 || a==2 || a==1) for (const Token *tok = scope->classStart; tok && tok != scope->classEnd; tok = tok->next()) { if (tok->isOp() && tok->astOperand1() && !Token::Match(tok, "+|-|*|/|%|=|<<|>>")) { if (Token::Match(tok, "==|!=|-") && astIsFloat(tok->astOperand1()))