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

Method removeComments

externals/simplecpp/simplecpp.cpp:1407–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407void simplecpp::TokenList::removeComments()
1408{
1409 Token *tok = frontToken;
1410 while (tok) {
1411 Token * const tok1 = tok;
1412 tok = tok->next;
1413 if (tok1->comment)
1414 deleteToken(tok1);
1415 }
1416}
1417
1418std::string simplecpp::TokenList::readUntil(Stream &stream, const Location &location, const char start, const char end, OutputList *outputList)
1419{

Callers 2

tryloadMethod · 0.45
loadMethod · 0.45

Calls 1

deleteTokenFunction · 0.85

Tested by

no test coverage detected