Running astyle [ci skip]
This commit is contained in:
parent
b5719418ea
commit
f7e6d216b2
|
@ -3089,10 +3089,10 @@ private:
|
||||||
|
|
||||||
// #8206 - knownCondition always false
|
// #8206 - knownCondition always false
|
||||||
check("void f(int i)\n"
|
check("void f(int i)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" if(i > 4)\n"
|
" if(i > 4)\n"
|
||||||
" for( int x = 0; i < 3; ++x){}\n" // <<
|
" for( int x = 0; i < 3; ++x){}\n" // <<
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:4]: (style) Condition 'i<3' is always false\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:4]: (style) Condition 'i<3' is always false\n", errout.str());
|
||||||
|
|
||||||
// Skip literals
|
// Skip literals
|
||||||
|
|
Loading…
Reference in New Issue