Reuse Token::isControlFlowKeyword()
This commit is contained in:
parent
b57dd4359b
commit
5cfa13c31c
|
@ -8175,7 +8175,7 @@ void Tokenizer::checkConfiguration() const
|
||||||
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
||||||
if (!Token::Match(tok, "%name% ("))
|
if (!Token::Match(tok, "%name% ("))
|
||||||
continue;
|
continue;
|
||||||
if (Token::Match(tok, "if|for|while|switch"))
|
if (tok->isControlFlowKeyword())
|
||||||
continue;
|
continue;
|
||||||
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
|
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2->str() != ")"; tok2 = tok2->next()) {
|
||||||
if (tok2->str() == ";") {
|
if (tok2->str() == ";") {
|
||||||
|
|
Loading…
Reference in New Issue