Small refactoring

This commit is contained in:
Daniel Marjamäki 2020-04-04 11:19:28 +02:00
parent 40e1e82a65
commit ac45bf7af2
1 changed files with 1 additions and 1 deletions

View File

@ -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%") &&