We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ea669 commit 151cdfcCopy full SHA for 151cdfc
1 file changed
test/testother.cpp
@@ -13124,6 +13124,9 @@ class TestOther : public TestFixture {
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
+ check("struct S { void g(float f) {} void f() {} };\n");
13129
+ ASSERT_EQUALS("[test.cpp:1:36] -> [test.cpp:1:25]: (style) Argument 'f' shadows outer function [shadowFunction]\n", errout_str());
13130
}
13131
13132
void knownArgument() {
0 commit comments