Skip to content

Commit 74dc314

Browse files
committed
Update tests
1 parent fa7843a commit 74dc314

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
@@ -6493,9 +6493,9 @@ class TestOther : public TestFixture {
64936493

64946494
check("class Foo {\n"
64956495
" int var;\n"
6496-
" void func(int var);\n"
6496+
" Foo(int var);\n"
64976497
"};\n"
6498-
"void Foo::func(int var) {\n"
6498+
"void Foo(int var) {\n"
64996499
" this->var = var;\n"
65006500
"}");
65016501
ASSERT_EQUALS("", errout_str());
@@ -12805,14 +12805,14 @@ class TestOther : public TestFixture {
1280512805
" int i{};\n"
1280612806
" void f() { int i; }\n"
1280712807
"};\n");
12808-
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:3:20]: (style) Local variable 'i' shadows outer variable [shadowVariable]\n", errout_str());
12808+
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:3:20]: (style) Local variable 'i' shadows outer member [shadowMember]\n", errout_str());
1280912809

1281012810
check("struct S {\n"
1281112811
" int i{};\n"
1281212812
" std::vector<int> v;\n"
1281312813
" void f() const { for (const int& i : v) {} }\n"
1281412814
"};\n");
12815-
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:4:38]: (style) Local variable 'i' shadows outer variable [shadowVariable]\n", errout_str());
12815+
ASSERT_EQUALS("[test.cpp:2:9] -> [test.cpp:4:38]: (style) Local variable 'i' shadows outer member [shadowMember]\n", errout_str());
1281612816

1281712817
check("struct S {\n" // #10405
1281812818
" F* f{};\n"
@@ -12822,7 +12822,7 @@ class TestOther : public TestFixture {
1282212822
"void S::f() const {\n"
1282312823
" for (const F& f : fl) {}\n"
1282412824
"};\n");
12825-
ASSERT_EQUALS("[test.cpp:2:8] -> [test.cpp:7:19]: (style) Local variable 'f' shadows outer variable [shadowVariable]\n", errout_str());
12825+
ASSERT_EQUALS("[test.cpp:2:8] -> [test.cpp:7:19]: (style) Local variable 'f' shadows outer member [shadowMember]\n", errout_str());
1282612826

1282712827
check("extern int a;\n"
1282812828
"int a;\n"

0 commit comments

Comments
 (0)