We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c14fc7 commit a609e0fCopy full SHA for a609e0f
1 file changed
test/testother.cpp
@@ -13118,6 +13118,9 @@ 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 { void g(float f) {} void f() {} };\n");
13123
+ ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
13124
}
13125
13126
void knownArgument() {
0 commit comments