Skip to content

Commit

Permalink
fix #13592
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Jan 28, 2025
1 parent 8432444 commit 3079ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3718,7 +3718,7 @@ void Tokenizer::simplifyParenthesizedLibraryFunctions()
if (!Token::simpleMatch(tok, ") ("))
continue;
Token *rpar = tok, *lpar = tok->link();
if (!lpar)
if (!lpar || Token::Match(lpar->previous(), "%name%"))
continue;
const Token *ftok = rpar->previous();
if (mSettings.library.isNotLibraryFunction(ftok))
Expand Down

0 comments on commit 3079ab8

Please sign in to comment.