@@ -4505,9 +4505,9 @@ class TestOther : public TestFixture {
45054505 ASSERT_EQUALS (" [test.cpp:2]: (style) Clarify calculation precedence for '*' and '?'.\n " , errout.str ());
45064506
45074507 // Ticket #2585 - segmentation fault for invalid code
4508- check (" abcdef?" " ?<"
4509- " 123456?" " ?>"
4510- " +?" " ?=" );
4508+ check (" abcdef??<"
4509+ " 123456??>"
4510+ " +??=" );
45114511 ASSERT_EQUALS (" " , errout.str ());
45124512
45134513 check (" void f(char c) {\n "
@@ -7145,7 +7145,7 @@ class TestOther : public TestFixture {
71457145 void checkCastIntToCharAndBack () { // #160
71467146
71477147 // check getchar
7148- check (" void f(){ \n "
7148+ check (" void f() { \n "
71497149 " unsigned char c;\n "
71507150 " while( (c = getchar()) != EOF)\n "
71517151 " {\n "
@@ -7154,7 +7154,7 @@ class TestOther : public TestFixture {
71547154 " }\n " );
71557155 ASSERT_EQUALS (" [test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n " , errout.str ());
71567156
7157- check (" void f(){ \n "
7157+ check (" void f() { \n "
71587158 " unsigned char c = getchar();\n "
71597159 " while( EOF != c)\n "
71607160 " {\n "
@@ -7163,7 +7163,7 @@ class TestOther : public TestFixture {
71637163 " }\n " );
71647164 ASSERT_EQUALS (" [test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n " , errout.str ());
71657165
7166- check (" void f(){ \n "
7166+ check (" void f() { \n "
71677167 " unsigned char c;\n "
71687168 " while( EOF != (c = getchar()) )\n "
71697169 " {\n "
@@ -7172,7 +7172,7 @@ class TestOther : public TestFixture {
71727172 " }\n " );
71737173 ASSERT_EQUALS (" [test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n " , errout.str ());
71747174
7175- check (" void f(){ \n "
7175+ check (" void f() { \n "
71767176 " int i;\n "
71777177 " while( (i = getchar()) != EOF)\n "
71787178 " {\n "
@@ -7181,7 +7181,7 @@ class TestOther : public TestFixture {
71817181 " }\n " );
71827182 ASSERT_EQUALS (" " , errout.str ());
71837183
7184- check (" void f(){ \n "
7184+ check (" void f() { \n "
71857185 " int i;\n "
71867186 " while( EOF != (i = getchar()) )\n "
71877187 " {\n "
0 commit comments