Use Token::simpleMatch() for simple pattern
Found by "internal" check
This commit is contained in:
parent
c478a3214f
commit
f867d05d81
|
@ -8520,7 +8520,7 @@ void Tokenizer::simplifyKeyword()
|
|||
|
||||
if (_settings->standards.c >= Standards::C99) {
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
while (Token::Match(tok, "restrict")) {
|
||||
while (Token::simpleMatch(tok, "restrict")) {
|
||||
tok->deleteThis();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue