Skip to content

Commit 4ed966a

Browse files
Update tokenize.cpp
1 parent d88e67c commit 4ed966a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,6 +2295,13 @@ void Tokenizer::simplifyTypedefCpp()
22952295
tok2 = tok2->tokAt(2);
22962296
else
22972297
tok2 = tok2->tokAt(3);
2298+
while (tok2->link()) {
2299+
tok2 = tok2->link()->next();
2300+
if (Token::simpleMatch(tok2, ";")) {
2301+
tok2 = tok2->previous();
2302+
break;
2303+
}
2304+
}
22982305
if (!tok2)
22992306
syntaxError(nullptr);
23002307

0 commit comments

Comments
 (0)