| 156 | } |
| 157 | |
| 158 | static bool isAlternativeBinaryOp(const simplecpp::Token *tok, const std::string &alt) |
| 159 | { |
| 160 | return (tok->name && |
| 161 | tok->str() == alt && |
| 162 | tok->previous && |
| 163 | tok->next && |
| 164 | (tok->previous->number || tok->previous->name || tok->previous->op == ')') && |
| 165 | (tok->next->number || tok->next->name || tok->next->op == '(')); |
| 166 | } |
| 167 | |
| 168 | static bool isAlternativeUnaryOp(const simplecpp::Token *tok, const std::string &alt) |
| 169 | { |
no test coverage detected