| 166 | } |
| 167 | |
| 168 | static bool isAlternativeUnaryOp(const simplecpp::Token *tok, const std::string &alt) |
| 169 | { |
| 170 | return ((tok->name && tok->str() == alt) && |
| 171 | (!tok->previous || tok->previous->op == '(') && |
| 172 | (tok->next && (tok->next->name || tok->next->number))); |
| 173 | } |
| 174 | |
| 175 | static std::string replaceAll(std::string s, const std::string& from, const std::string& to) |
| 176 | { |
no test coverage detected