| 2988 | } |
| 2989 | |
| 2990 | static void simplifyComments(simplecpp::TokenList &expr) |
| 2991 | { |
| 2992 | for (simplecpp::Token *tok = expr.front(); tok;) { |
| 2993 | simplecpp::Token * const d = tok; |
| 2994 | tok = tok->next; |
| 2995 | if (d->comment) |
| 2996 | expr.deleteToken(d); |
| 2997 | } |
| 2998 | } |
| 2999 | |
| 3000 | /** |
| 3001 | * @throws std::runtime_error thrown on invalid literals, missing sizeof arguments or invalid expressions, |
no test coverage detected