diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index f22593307..d54c8fb28 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -570,7 +570,7 @@ void Tokenizer::simplifyTypedef() } if (tok->str() != "typedef") { - if (tok->str() == "(" && tok->strAt(1) == "typedef") { + if (Token::simpleMatch(tok, "( typedef")) { // Skip typedefs inside parentheses (#2453 and #4002) tok = tok->next(); } else if (Token::Match(tok, "class|struct|namespace %any%") &&