We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fc2d8 commit 7dde7e4Copy full SHA for 7dde7e4
1 file changed
test/testother.cpp
@@ -1946,7 +1946,7 @@ class TestOther : public TestFixture {
1946
ASSERT_EQUALS("[test.cpp:3:12]: (style) The scope of the variable 'x' can be reduced. [variableScope]\n", errout_str());
1947
}
1948
1949
- varScope45() {
+ void varScope45() {
1950
check("void g(int x, int y) {\n" // #14497
1951
" int a = x, b = y;\n"
1952
" if (a) {}\n"
0 commit comments