Use Token::simpleMatch instead of Token::Match
"--enable=internal" reported: [lib/tokenize.cpp:3563]: (warning) Found simple pattern inside Token::Match() call: ") ;"
This commit is contained in:
parent
0722da026f
commit
5025d1019f
|
@ -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% ;"))
|
||||
|
|
Loading…
Reference in New Issue