MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / simplifyComments

Function simplifyComments

externals/simplecpp/simplecpp.cpp:2990–2998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2988}
2989
2990static 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,

Callers 1

evaluateFunction · 0.85

Calls 2

frontMethod · 0.80
deleteTokenMethod · 0.80

Tested by

no test coverage detected