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/testclass.cpp
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -893,7 +893,7 @@ class TestClass : public TestFixture {
893
893
" ~F();\n"
894
894
" F& operator=(const F&f);\n"
895
895
"};");
896
-
TODO_ASSERT_EQUALS("[test.cpp:8]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s).\n", "", errout_str());
896
+
TODO_ASSERT_EQUALS("[test.cpp:8]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource management.\n", "", errout_str());
897
897
898
898
checkCopyConstructor("class F\n"
899
899
"{\n"
@@ -951,7 +951,7 @@ class TestClass : public TestFixture {
951
951
" ~F();\n"
952
952
" F& operator=(const F&f);\n"
953
953
"};");
954
-
ASSERT_EQUALS("[test.cpp:5:7]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]\n", errout_str());
954
+
ASSERT_EQUALS("[test.cpp:5:7]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor]\n", errout_str());
955
955
956
956
checkCopyConstructor("class F {\n"
957
957
" char *p;\n"
@@ -970,7 +970,7 @@ class TestClass : public TestFixture {
970
970
" ~F();\n"
971
971
" F& operator=(const F&f);\n"
972
972
"};");
973
-
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]\n", errout_str());
973
+
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Class 'F' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor]\n", errout_str());
974
974
975
975
// #7198
976
976
checkCopyConstructor("struct F {\n"
@@ -1074,9 +1074,9 @@ class TestClass : public TestFixture {
1074
1074
" }\n"
1075
1075
" char* a[5];\n"
1076
1076
"};\n");
1077
-
TODO_ASSERT_EQUALS("[test.cpp:4]: (warning) Struct 'S' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s).\n"
1078
-
"[test.cpp:4]: (warning) Struct 'S' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s).\n"
1079
-
"[test.cpp:4]: (warning) Struct 'S' does not have a destructor which is recommended since it has dynamic memory/resource allocation(s).\n",
1077
+
TODO_ASSERT_EQUALS("[test.cpp:4]: (warning) Struct 'S' does not have a copy constructor which is recommended since it has dynamic memory/resource management.\n"
1078
+
"[test.cpp:4]: (warning) Struct 'S' does not have a operator= which is recommended since it has dynamic memory/resource management.\n"
1079
+
"[test.cpp:4]: (warning) Struct 'S' does not have a destructor which is recommended since it has dynamic memory/resource management.\n",
1080
1080
"",
1081
1081
errout_str());
1082
1082
}
@@ -1088,7 +1088,7 @@ class TestClass : public TestFixture {
1088
1088
" F(const F &f);\n"
1089
1089
" ~F();\n"
1090
1090
"};");
1091
-
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]\n", errout_str());
1091
+
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq]\n", errout_str());
1092
1092
1093
1093
// defaulted operator=
1094
1094
checkCopyConstructor("struct F {\n"
@@ -1127,7 +1127,7 @@ class TestClass : public TestFixture {
1127
1127
" F(const F &f);\n"
1128
1128
" F&operator=(const F&);"
1129
1129
"};");
1130
-
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource allocation(s). [noDestructor]\n", errout_str());
1130
+
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource management. [noDestructor]\n", errout_str());
1131
1131
1132
1132
checkCopyConstructor("struct F {\n"
1133
1133
" C* c;\n"
@@ -1143,7 +1143,7 @@ class TestClass : public TestFixture {
1143
1143
" F(const F &f);\n"
1144
1144
" F& operator=(const F&);"
1145
1145
"};");
1146
-
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource allocation(s). [noDestructor]\n", errout_str());
1146
+
ASSERT_EQUALS("[test.cpp:3:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource management. [noDestructor]\n", errout_str());
1147
1147
1148
1148
checkCopyConstructor("struct Data { int x; int y; };\n"
1149
1149
"struct F {\n"
@@ -1152,7 +1152,7 @@ class TestClass : public TestFixture {
1152
1152
" F(const F &f);\n"
1153
1153
" F&operator=(const F&);"
1154
1154
"};");
1155
-
ASSERT_EQUALS("[test.cpp:4:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource allocation(s). [noDestructor]\n", errout_str());
1155
+
ASSERT_EQUALS("[test.cpp:4:10]: (warning) Struct 'F' does not have a destructor which is recommended since it has dynamic memory/resource management. [noDestructor]\n", errout_str());
0 commit comments