Use simpleMatch for simple pattern
This commit is contained in:
parent
dc2a92263a
commit
2a719bd194
|
@ -8286,7 +8286,7 @@ void Tokenizer::simplifyStructDecl()
|
|||
}
|
||||
}
|
||||
// check for anonymous enum
|
||||
else if ((Token::Match(tok, "enum {") && Token::Match(tok->next()->link(), "} %type%| ,|;|[")) ||
|
||||
else if ((Token::simpleMatch(tok, "enum {") && Token::Match(tok->next()->link(), "} %type%| ,|;|[")) ||
|
||||
(Token::Match(tok, "enum : %type% {") && Token::Match(tok->linkAt(3), "} %type%| ,|;|["))) {
|
||||
tok->insertToken("Anonymous" + MathLib::toString(count++));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue