| 73 | } |
| 74 | |
| 75 | static bool isConvertedToBool(const Token* tok) |
| 76 | { |
| 77 | if (!tok->astParent()) |
| 78 | return false; |
| 79 | return astIsBool(tok->astParent()) || Token::Match(tok->astParent()->previous(), "if|while ("); |
| 80 | } |
| 81 | |
| 82 | //--------------------------------------------------------------------------- |
| 83 | // if (bool & bool) -> if (bool && bool) |
no test coverage detected