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
ASSERT_EQUALS("[test.cpp:10] -> [test.cpp:6]: (style, inconclusive) Technically the member function 'N::Base::getResourceName' can be const.\n", errout.str());
4028
4028
4029
4029
checkConst("namespace N\n"
@@ -4051,7 +4051,7 @@ class TestClass : public TestFixture {
4051
4051
" };\n"
4052
4052
"}\n"
4053
4053
"using namespace N;\n"
4054
-
"int Base::getResourceName() { return var; }\n");
4054
+
"int Base::getResourceName() { return var; }");
4055
4055
TODO_ASSERT_EQUALS("[test.cpp:11] -> [test.cpp:6]: (style, inconclusive) Technically the member function 'N::Base::getResourceName' can be const.\n",
4056
4056
"", errout.str());
4057
4057
}
@@ -5191,7 +5191,7 @@ class TestClass : public TestFixture {
5191
5191
" B() : b(0) { }\n"
5192
5192
" int func();\n"
5193
5193
"};\n"
5194
-
"int B::func() { return b; }\n");
5194
+
"int B::func() { return b; }");
5195
5195
ASSERT_EQUALS("[test.cpp:8] -> [test.cpp:6]: (style, inconclusive) Technically the member function 'B::func' can be const.\n", errout.str());
5196
5196
5197
5197
// base class has no virtual function
@@ -5217,7 +5217,7 @@ class TestClass : public TestFixture {
5217
5217
" B() : b(0) { }\n"
5218
5218
" int func();\n"
5219
5219
"};\n"
5220
-
"int B::func() { return b; }\n");
5220
+
"int B::func() { return b; }");
5221
5221
ASSERT_EQUALS("[test.cpp:11] -> [test.cpp:9]: (style, inconclusive) Technically the member function 'B::func' can be const.\n", errout.str());
5222
5222
5223
5223
// base class has virtual function
@@ -5243,7 +5243,7 @@ class TestClass : public TestFixture {
5243
5243
" B() : b(0) { }\n"
5244
5244
" int func();\n"
5245
5245
"};\n"
5246
-
"int B::func() { return b; }\n");
5246
+
"int B::func() { return b; }");
5247
5247
ASSERT_EQUALS("", errout.str());
5248
5248
5249
5249
checkConst("class A {\n"
@@ -5256,7 +5256,7 @@ class TestClass : public TestFixture {
5256
5256
" B() : b(0) { }\n"
5257
5257
" int func();\n"
5258
5258
"};\n"
5259
-
"int B::func() { return b; }\n");
5259
+
"int B::func() { return b; }");
5260
5260
ASSERT_EQUALS("", errout.str());
5261
5261
5262
5262
// base class has no virtual function
@@ -5302,7 +5302,7 @@ class TestClass : public TestFixture {
5302
5302
" C() : c(0) { }\n"
5303
5303
" int func();\n"
5304
5304
"};\n"
5305
-
"int C::func() { return c; }\n");
5305
+
"int C::func() { return c; }");
5306
5306
ASSERT_EQUALS("[test.cpp:7] -> [test.cpp:5]: (style, inconclusive) Technically the member function 'A::func' can be const.\n"
5307
5307
"[test.cpp:14] -> [test.cpp:12]: (style, inconclusive) Technically the member function 'B::func' can be const.\n"
5308
5308
"[test.cpp:21] -> [test.cpp:19]: (style, inconclusive) Technically the member function 'C::func' can be const.\n", errout.str());
@@ -5348,7 +5348,7 @@ class TestClass : public TestFixture {
5348
5348
" C() : c(0) { }\n"
5349
5349
" int func();\n"
5350
5350
"};\n"
5351
-
"int C::func() { return c; }\n");
5351
+
"int C::func() { return c; }");
5352
5352
ASSERT_EQUALS("", errout.str());
5353
5353
5354
5354
// ticket #1311
@@ -5394,7 +5394,7 @@ class TestClass : public TestFixture {
5394
5394
" Z(int x, int y, int z) : Y(x, y), z(z) { }\n"
5395
5395
" int getZ();\n"
5396
5396
"};\n"
5397
-
"int Z::getZ() { return z; }\n");
5397
+
"int Z::getZ() { return z; }");
5398
5398
ASSERT_EQUALS("[test.cpp:7] -> [test.cpp:5]: (style, inconclusive) Technically the member function 'X::getX' can be const.\n"
5399
5399
"[test.cpp:14] -> [test.cpp:12]: (style, inconclusive) Technically the member function 'Y::getY' can be const.\n"
5400
5400
"[test.cpp:21] -> [test.cpp:19]: (style, inconclusive) Technically the member function 'Z::getZ' can be const.\n", errout.str());
0 commit comments