From 36a57ca014e7055191a2b1062335d1db185867a2 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Mon, 17 Jun 2024 21:08:50 +0200 Subject: [PATCH] Format --- lib/checkother.cpp | 2 +- test/testother.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 9f444f8bf0f..6ab1894a84b 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -519,7 +519,7 @@ void CheckOther::checkRedundantAssignment() tokenToCheck = tempToken; } - if (start->hasKnownSymbolicValue(tokenToCheck) && Token::simpleMatch(start->astParent(), "=")) { + if (start->hasKnownSymbolicValue(tokenToCheck) && Token::simpleMatch(start->astParent(), "=")) { redundantAssignmentSameValueError(start, tokenToCheck, tok->astOperand1()->expressionString()); } diff --git a/test/testother.cpp b/test/testother.cpp index 29dc3eed060..044970d3c19 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -10195,7 +10195,7 @@ class TestOther : public TestFixture { " return a * b * c;\n" "}\n"); ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:5]: (style) Variable 'a' is assigned an expression that holds the same value.\n", errout_str()); - + check("int main() {\n" " int a = 0;\n" " int b = a;\n"