We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72667f7 commit b48f0f3Copy full SHA for b48f0f3
1 file changed
lib/tokenize.cpp
@@ -4704,6 +4704,16 @@ void Tokenizer::setVarIdPass1()
4704
bool initlist = false;
4705
bool inlineFunction = false;
4706
for (Token *tok = list.front(); tok; tok = tok->next()) {
4707
+ if (Token::simpleMatch(tok, ") (") && Token::simpleMatch(tok->link(), "( *")) {
4708
+ const Token *typeTok = tok->link()->previous();
4709
+ while (Token::Match(typeTok, "*|&")) {
4710
+ typeTok = tok->previous();
4711
+ }
4712
+ if (Token::Match(typeTok, "%type%")) {
4713
+ tok = tok->linkAt(1);
4714
+ continue;
4715
4716
4717
if (tok->isOp())
4718
continue;
4719
if (cpp && Token::simpleMatch(tok, "template <")) {
0 commit comments