| 185 | //------------------------------------------------------------------------------- |
| 186 | |
| 187 | static bool tokenIsFunctionReturningBool(const Token* tok) |
| 188 | { |
| 189 | const Function* func = tok ? tok->function() : nullptr; |
| 190 | if (func && Token::Match(tok, "%name% (")) { |
| 191 | if (func->tokenDef && Token::Match(func->tokenDef->previous(), "bool|_Bool")) { |
| 192 | return true; |
| 193 | } |
| 194 | } |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | void CheckBoolImpl::checkComparisonOfFuncReturningBool() |
| 199 | { |
no test coverage detected