Skip to content

Commit 31d2812

Browse files
committed
Update tests
1 parent a2be91a commit 31d2812

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/testother.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6517,9 +6517,9 @@ class TestOther : public TestFixture {
65176517

65186518
check("class Foo {\n"
65196519
" int var;\n"
6520-
" void func(int var);\n"
6520+
" Foo(int var);\n"
65216521
"};\n"
6522-
"void Foo::func(int var) {\n"
6522+
"Foo::Foo(int var) {\n"
65236523
" this->var = var;\n"
65246524
"}");
65256525
ASSERT_EQUALS("", errout_str());
@@ -12853,14 +12853,14 @@ class TestOther : public TestFixture {
1285312853
" int i{};\n"
1285412854
" void f() { int i; }\n"
1285512855
"};\n");
12856-
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:3:20]: (style) Local variable 'i' shadows outer variable [shadowVariable]\n", errout_str());
12856+
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:3:20]: (style) Local variable 'i' shadows outer member [shadowMember]\n", errout_str());
1285712857

1285812858
check("struct S {\n"
1285912859
" int i{};\n"
1286012860
" std::vector<int> v;\n"
1286112861
" void f() const { for (const int& i : v) {} }\n"
1286212862
"};\n");
12863-
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:4:38]: (style) Local variable 'i' shadows outer variable [shadowVariable]\n", errout_str());
12863+
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:4:38]: (style) Local variable 'i' shadows outer member [shadowMember]\n", errout_str());
1286412864

1286512865
check("struct S {\n" // #10405
1286612866
" F* f{};\n"
@@ -12870,7 +12870,7 @@ class TestOther : public TestFixture {
1287012870
"void S::f() const {\n"
1287112871
" for (const F& f : fl) {}\n"
1287212872
"};\n");
12873-
ASSERT_EQUALS("[test.cpp:2:8] -> [test.cpp:7:19]: (style) Local variable 'f' shadows outer variable [shadowVariable]\n", errout_str());
12873+
ASSERT_EQUALS("[test.cpp:2:8] -> [test.cpp:7:19]: (style) Local variable 'f' shadows outer member [shadowMember]\n", errout_str());
1287412874

1287512875
check("extern int a;\n"
1287612876
"int a;\n"

0 commit comments

Comments
 (0)