Skip to content

Commit f867d05

Browse files
committed
Use Token::simpleMatch() for simple pattern
Found by "internal" check
1 parent c478a32 commit f867d05

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
@@ -8520,7 +8520,7 @@ void Tokenizer::simplifyKeyword()
85208520

85218521
if (_settings->standards.c >= Standards::C99) {
85228522
for (Token *tok = list.front(); tok; tok = tok->next()) {
8523-
while (Token::Match(tok, "restrict")) {
8523+
while (Token::simpleMatch(tok, "restrict")) {
85248524
tok->deleteThis();
85258525
}
85268526
}

0 commit comments

Comments
 (0)