You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (tok->function()) { // Check if it is a member function. If yes: bailout (TODO: this causes false negatives, since we do not check of which function this is a member
Copy file name to clipboardExpand all lines: test/testother.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ class TestOther : public TestFixture {
302
302
" if(a!=b)\n"
303
303
" cout << a;\n"
304
304
"}");
305
-
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3]: (warning, inconclusive) Opposite conditions in nested 'if' blocks lead to a dead code block.\n", errout.str());
305
+
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3]: (warning) Opposite conditions in nested 'if' blocks lead to a dead code block.\n", errout.str());
306
306
307
307
check("void foo(int a) {\n"
308
308
" if(a >= 50) {\n"
@@ -312,7 +312,7 @@ class TestOther : public TestFixture {
312
312
" cout << 100;\n"
313
313
" }\n"
314
314
"}");
315
-
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3]: (warning, inconclusive) Opposite conditions in nested 'if' blocks lead to a dead code block.\n", errout.str());
315
+
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3]: (warning) Opposite conditions in nested 'if' blocks lead to a dead code block.\n", errout.str());
0 commit comments