We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa30464 commit 9d10f4fCopy full SHA for 9d10f4f
2 files changed
lib/tokenize.cpp
@@ -7529,7 +7529,7 @@ Token * Tokenizer::initVar(Token * tok)
7529
return tok;
7530
7531
tok = tok->next();
7532
- } else if (!tok->isStandardType() && tok->next()->str() != "*")
+ } else if (!tok->isStandardType() && tok->str() != "auto" && tok->next()->str() != "*")
7533
7534
7535
// goto variable name..
test/teststl.cpp
@@ -5013,6 +5013,9 @@ class TestStl : public TestFixture {
5013
"}\n",
5014
true);
5015
ASSERT_EQUALS("", errout.str());
5016
+
5017
+ check("void foo() { int f = 0; auto g(f); g = g; }");
5018
+ ASSERT_EQUALS("", errout.str());
5019
}
5020
};
5021
0 commit comments