Use simpleMatch instead of Match for simple pattern, hope this makes Travis happy
This commit is contained in:
parent
cea40168e0
commit
34449ae857
|
@ -99,7 +99,7 @@ void CheckFunctions::invalidFunctionUsage()
|
|||
while (Token::Match(var, ".|::"))
|
||||
var = var->astOperand2();
|
||||
if (Token::Match(top, "%comp%|%oror%|&&|!|true|false") ||
|
||||
(var && var->variable() && Token::Match(var->variable()->typeStartToken(), "bool"))) {
|
||||
(var && var->variable() && Token::simpleMatch(var->variable()->typeStartToken(), "bool"))) {
|
||||
if (_settings->library.isboolargbad(functionToken, argnr))
|
||||
invalidFunctionArgBoolError(top, functionToken->str(), argnr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue