We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e95639c commit 325c86dCopy full SHA for 325c86d
1 file changed
test/testunusedvar.cpp
@@ -7079,6 +7079,15 @@ class TestUnusedVar : public TestFixture {
7079
" A<int> a;\n"
7080
"}\n");
7081
ASSERT_EQUALS("[test.cpp:6:12]: (style) Unused variable: a [unusedVariable]\n", errout_str());
7082
+
7083
+ functionVariableUsage("template <typename T>\n" // #14784
7084
+ "struct A {\n"
7085
+ " A() {}\n"
7086
+ "};\n"
7087
+ "void f() {\n"
7088
+ " A<int> a;\n"
7089
+ "}\n");
7090
+ ASSERT_EQUALS("[test.cpp:6:12]: (style) Unused variable: a [unusedVariable]\n", errout_str());
7091
}
7092
7093
void localvarFuncPtr() {
0 commit comments