Skip to content

Commit b48f0f3

Browse files
committed
fix
1 parent 72667f7 commit b48f0f3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4704,6 +4704,16 @@ void Tokenizer::setVarIdPass1()
47044704
bool initlist = false;
47054705
bool inlineFunction = false;
47064706
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+
}
47074717
if (tok->isOp())
47084718
continue;
47094719
if (cpp && Token::simpleMatch(tok, "template <")) {

0 commit comments

Comments
 (0)