We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c14fc7 commit a8b5b1bCopy full SHA for a8b5b1b
1 file changed
test/testother.cpp
@@ -13118,6 +13118,12 @@ class TestOther : public TestFixture {
13118
check("struct S { int v(); explicit S(int v); };\n"
13119
"S::S(int v) : v(v) {}\n");
13120
ASSERT_EQUALS("", errout_str());
13121
+
13122
+ check("struct S { int i(); static void f(int i) {} };\n");
13123
+ ASSERT_EQUALS("", errout_str());
13124
13125
+ check("struct S { static int i(); static void f(int i) {} };\n");
13126
+ ASSERT_EQUALS("[test.cpp:1:23] -> [test.cpp:1:46]: (style) Argument 'i' shadows outer function [shadowFunction]\n", errout_str());
13127
}
13128
13129
void knownArgument() {
0 commit comments