Reuse Token::isControlFlowKeyword()

This commit is contained in:
Daniel Marjamäki 2017-11-17 22:18:19 +01:00
parent b57dd4359b
commit 5cfa13c31c
1 changed files with 1 additions and 1 deletions

View File

@ -8175,7 +8175,7 @@ void Tokenizer::checkConfiguration() const
for (const Token *tok = tokens(); tok; tok = tok->next()) {
if (!Token::Match(tok, "%name% ("))
continue;
if (Token::Match(tok, "if|for|while|switch"))
if (tok->isControlFlowKeyword())
continue;
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
if (tok2->str() == ";") {