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
Copy file name to clipboardExpand all lines: test/testother.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4296,7 +4296,7 @@ class TestOther : public TestFixture {
4296
4296
" if ((x == 1) && (x == 0x00000001))\n"
4297
4297
" a++;\n"
4298
4298
"}");
4299
-
ASSERT_EQUALS("[test.cpp:2]: (style) Same expression on both sides of '&&'.\n", errout.str());
4299
+
ASSERT_EQUALS("[test.cpp:2]: (style) Same expression on both sides of '&&' because 'x==1' and 'x==0x00000001' represent the same value.\n", errout.str());
4300
4300
4301
4301
check("void f() {\n"
4302
4302
" enum { Four = 4 };\n"
@@ -8300,13 +8300,13 @@ class TestOther : public TestFixture {
8300
8300
"void f(int x) {\n"
8301
8301
" g((x & 0x01) >> 7);\n"
8302
8302
"}\n");
8303
-
ASSERT_EQUALS("[test.cpp:3]: (style) Argument '(x&1)>>7' to function g is always 0\n", errout.str());
8303
+
ASSERT_EQUALS("[test.cpp:3]: (style) Argument '(x&0x01)>>7' to function g is always 0\n", errout.str());
8304
8304
8305
8305
check("void g(int);\n"
8306
8306
"void f(int x) {\n"
8307
8307
" g((int)((x & 0x01) >> 7));\n"
8308
8308
"}\n");
8309
-
ASSERT_EQUALS("[test.cpp:3]: (style) Argument '(int)((x&1)>>7)' to function g is always 0\n", errout.str());
8309
+
ASSERT_EQUALS("[test.cpp:3]: (style) Argument '(int)((x&0x01)>>7)' to function g is always 0\n", errout.str());
0 commit comments