Skip to content

Commit c0d6206

Browse files
Remove erroneous comments about duplicates [skip ci] (#8405)
1 parent bb5f483 commit c0d6206

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/testautovariables.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,7 @@ class TestAutoVariables : public TestFixture {
40334033
"}");
40344034
ASSERT_EQUALS(
40354035
"[test.cpp:3:28] -> [test.cpp:3:28] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4036-
"[test.cpp:3:32] -> [test.cpp:3:32] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4036+
"[test.cpp:3:32] -> [test.cpp:3:32] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40374037
errout_str());
40384038

40394039
check("std::vector<int*> f() {\n"
@@ -4043,7 +4043,7 @@ class TestAutoVariables : public TestFixture {
40434043
"}");
40444044
ASSERT_EQUALS(
40454045
"[test.cpp:3:25] -> [test.cpp:3:25] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4046-
"[test.cpp:3:29] -> [test.cpp:3:29] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4046+
"[test.cpp:3:29] -> [test.cpp:3:29] -> [test.cpp:2:9] -> [test.cpp:4:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40474047
errout_str());
40484048

40494049
check("std::vector<int*> f() {\n"
@@ -4052,7 +4052,7 @@ class TestAutoVariables : public TestFixture {
40524052
"}");
40534053
ASSERT_EQUALS(
40544054
"[test.cpp:3:13] -> [test.cpp:3:13] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n"
4055-
"[test.cpp:3:17] -> [test.cpp:3:17] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n", // duplicate
4055+
"[test.cpp:3:17] -> [test.cpp:3:17] -> [test.cpp:2:9] -> [test.cpp:3:12]: (error) Returning object that points to local variable 'i' that will be invalid when returning. [returnDanglingLifetime]\n",
40564056
errout_str());
40574057

40584058
check("std::vector<int*> f(int& x) {\n"

test/testbool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class TestBool : public TestFixture {
273273
"}");
274274
ASSERT_EQUALS(
275275
"[test.cpp:2:17]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt]\n"
276-
"[test.cpp:2:32]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt]\n", // duplicate
276+
"[test.cpp:2:32]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt]\n",
277277
errout_str());
278278

279279
check("void f(int x) {\n"

test/testfunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class TestFunctions : public TestFixture {
222222
"}");
223223
ASSERT_EQUALS(
224224
"[test.cpp:2:22]: (style) Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [indexCalled]\n"
225-
"[test.cpp:2:37]: (style) Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [indexCalled]\n", // duplicate
225+
"[test.cpp:2:37]: (style) Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [indexCalled]\n",
226226
errout_str());
227227
}
228228

test/testother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7707,7 +7707,7 @@ class TestOther : public TestFixture {
77077707
"}");
77087708
ASSERT_EQUALS(
77097709
"[test.cpp:2:22]: (style) Same expression on both sides of '&'. [duplicateExpression]\n"
7710-
"[test.cpp:2:29]: (style) Same expression on both sides of '&'. [duplicateExpression]\n", // duplicate
7710+
"[test.cpp:2:29]: (style) Same expression on both sides of '&'. [duplicateExpression]\n",
77117711
errout_str());
77127712

77137713
}

0 commit comments

Comments
 (0)