Skip to content

Commit 2a719bd

Browse files
committed
Use simpleMatch for simple pattern
1 parent dc2a922 commit 2a719bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8286,7 +8286,7 @@ void Tokenizer::simplifyStructDecl()
82868286
}
82878287
}
82888288
// check for anonymous enum
8289-
else if ((Token::Match(tok, "enum {") && Token::Match(tok->next()->link(), "} %type%| ,|;|[")) ||
8289+
else if ((Token::simpleMatch(tok, "enum {") && Token::Match(tok->next()->link(), "} %type%| ,|;|[")) ||
82908290
(Token::Match(tok, "enum : %type% {") && Token::Match(tok->linkAt(3), "} %type%| ,|;|["))) {
82918291
tok->insertToken("Anonymous" + MathLib::toString(count++));
82928292
}

0 commit comments

Comments
 (0)