Use simpleMatch for simple pattern

This commit is contained in:
Daniel Marjamäki 2016-04-22 06:52:37 +02:00
parent dc2a92263a
commit 2a719bd194
1 changed files with 1 additions and 1 deletions

View File

@ -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++));
}