diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 762b7dfce..c0151c9e6 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -3750,7 +3750,7 @@ struct ValueFlowConditionHandler { // if astParent is "!" we need to invert codeblock { const Token *tok2 = tok; - while(tok2->astParent()){ + while (tok2->astParent()) { const Token *parent = tok2->astParent(); while (parent && parent->str() == "&&") parent = parent->astParent(); diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index d87685e0f..9f30bc7c1 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -2254,7 +2254,7 @@ private: "}"; ASSERT_EQUALS(true, testValueOfX(code, 3U, 0)); - code = "int f(int x, int y) {\n" + code = "int f(int x, int y) {\n" " if (!!(x != 0)) {\n" " return y/x;\n" "}\n"