Fix Token::Match pattern
This commit is contained in:
parent
254e5675ff
commit
18cab009c1
|
@ -3405,7 +3405,7 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
if (Token::Match(tok, "[;{}]"))
|
if (Token::Match(tok, "[;{}]"))
|
||||||
lt = nullptr;
|
lt = nullptr;
|
||||||
else if (Token::Match(tok, "%type <"))
|
else if (Token::Match(tok, "%type% <"))
|
||||||
lt = tok->next();
|
lt = tok->next();
|
||||||
else if (lt && Token::Match(tok, ">|>> %name%|::|(")) {
|
else if (lt && Token::Match(tok, ">|>> %name%|::|(")) {
|
||||||
const Token * const end = tok;
|
const Token * const end = tok;
|
||||||
|
|
Loading…
Reference in New Issue