Replace Token::simpleMatch with Token::Match for complex pattern

This commit is contained in:
Daniel Marjamäki 2019-03-03 12:40:55 +01:00
parent 59ec5f961f
commit eb109af00f
1 changed files with 1 additions and 1 deletions

View File

@ -4309,7 +4309,7 @@ void Tokenizer::simplifyHeaders()
Token *start = tok->next();
while (start && functionStart.find(start->str()) != functionStart.end())
start = start->next();
if (Token::Match(start, "%name% (") && Token::simpleMatch(start->linkAt(1), ") const| ;") && keep.find(start->str()) == keep.end())
if (Token::Match(start, "%name% (") && Token::Match(start->linkAt(1), ") const| ;") && keep.find(start->str()) == keep.end())
Token::eraseTokens(tok, start->linkAt(1)->tokAt(2));
else
break;