Skip to content

Commit 9b9dd99

Browse files
Update tokenize.cpp
1 parent 78a38ed commit 9b9dd99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/tokenize.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9427,7 +9427,7 @@ void Tokenizer::simplifyFunctionTryCatch()
94279427
if (!Token::Match(tok, "try {|:"))
94289428
continue;
94299429
const Token* par = tok->previous();
9430-
while (par && par->isKeyword())
9430+
while (par && (par->isKeyword() || Token::Match(par, "final|override")))
94319431
par = par->previous();
94329432
if (!TokenList::isFunctionHead(par, "try")) // TODO: this is supposed to a list of characters and not strings
94339433
continue;

0 commit comments

Comments
 (0)