Skip to content

Commit 9df7881

Browse files
committed
Format
1 parent 97744da commit 9df7881

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

lib/valueflow.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5516,7 +5516,12 @@ static void valueFlowForLoop(const TokenList &tokenlist, const SymbolDatabase& s
55165516
continue;
55175517
if (p.first.tok->varId() == 0)
55185518
continue;
5519-
valueFlowForLoopSimplifyAfter(tok, p.first.getExpressionId(), p.second.intvalue, tokenlist, errorLogger, settings);
5519+
valueFlowForLoopSimplifyAfter(tok,
5520+
p.first.getExpressionId(),
5521+
p.second.intvalue,
5522+
tokenlist,
5523+
errorLogger,
5524+
settings);
55205525
}
55215526
}
55225527
}

test/testbufferoverrun.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,9 @@ class TestBufferOverrun : public TestFixture {
20552055
" }\n"
20562056
" arr[idx] = 0;\n"
20572057
"}\n");
2058-
ASSERT_EQUALS("[test.cpp:8:8]: (error) Array 'arr[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\n", errout_str());
2058+
ASSERT_EQUALS(
2059+
"[test.cpp:8:8]: (error) Array 'arr[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\n",
2060+
errout_str());
20592061

20602062
check("void f(bool c) {\n" // continue -> the loop condition can be evaluated again
20612063
" int idx;\n"
@@ -2067,7 +2069,9 @@ class TestBufferOverrun : public TestFixture {
20672069
" }\n"
20682070
" arr[idx] = 0;\n"
20692071
"}\n");
2070-
ASSERT_EQUALS("[test.cpp:9:8]: (error) Array 'arr[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\n", errout_str());
2072+
ASSERT_EQUALS(
2073+
"[test.cpp:9:8]: (error) Array 'arr[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds]\n",
2074+
errout_str());
20712075
}
20722076

20732077
void array_index_multidim() {

0 commit comments

Comments
 (0)