From 5025d1019f294eadc7a90b3bf2d15ae3f728998b Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 24 Nov 2011 10:11:45 +0100 Subject: [PATCH] Use Token::simpleMatch instead of Token::Match "--enable=internal" reported: [lib/tokenize.cpp:3563]: (warning) Found simple pattern inside Token::Match() call: ") ;" --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 62d5e544c..c9fba00ce 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3560,7 +3560,7 @@ void Tokenizer::setVarId() tok2 = tok2->next(); } - if (executableScope && Token::Match(tok2, ") ;")) + if (executableScope && Token::simpleMatch(tok2, ") ;")) continue; if (Token::Match(tok2 ? tok2->tokAt(-2) : 0, "class|struct %type% ;"))