From 5cfa13c31cd043bbf5d745293f951c8fdcd6ed29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 17 Nov 2017 22:18:19 +0100 Subject: [PATCH] Reuse Token::isControlFlowKeyword() --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 66a948bed..bc1a14490 100755 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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() == ";") {