Fix Token::Match pattern

This commit is contained in:
Daniel Marjamäki 2016-08-28 19:25:57 +02:00
parent 254e5675ff
commit 18cab009c1
1 changed files with 1 additions and 1 deletions

View File

@ -3405,7 +3405,7 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "[;{}]"))
lt = nullptr;
else if (Token::Match(tok, "%type <"))
else if (Token::Match(tok, "%type% <"))
lt = tok->next();
else if (lt && Token::Match(tok, ">|>> %name%|::|(")) {
const Token * const end = tok;