From b9d03d0e235b0456793c420f20163c7215f1a669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 10 Jun 2018 21:59:24 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/checkother.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 09601ebd5..ad0eb95de 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1952,14 +1952,14 @@ void CheckOther::checkDuplicateExpression() bool assigned = false; const Scope * varScope = var1->scope() ? var1->scope() : &*scope; for (const Token *assignTok = Token::findsimplematch(var2, ";"); assignTok && assignTok != varScope->bodyEnd; assignTok = assignTok->next()) { - if(Token::Match(assignTok, "%varid% = %var%", var1->varId()) && Token::Match(assignTok, "%var% = %varid%", var2->varId())) { + if (Token::Match(assignTok, "%varid% = %var%", var1->varId()) && Token::Match(assignTok, "%var% = %varid%", var2->varId())) { assigned = true; } - if(Token::Match(assignTok, "%varid% = %var%", var2->varId()) && Token::Match(assignTok, "%var% = %varid%", var1->varId())) { + if (Token::Match(assignTok, "%varid% = %var%", var2->varId()) && Token::Match(assignTok, "%var% = %varid%", var1->varId())) { assigned = true; } } - if(!assigned) + if (!assigned) duplicateAssignExpressionError(var1, var2); } }