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

Method clear

externals/simplecpp/simplecpp.cpp:541–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541void simplecpp::TokenList::clear()
542{
543 backToken = nullptr;
544 while (frontToken) {
545 Token * const next = frontToken->next;
546 delete frontToken;
547 frontToken = next;
548 }
549 sizeOfType.clear();
550}
551
552void simplecpp::TokenList::push_back(Token *tok)
553{

Callers 6

clearFunction · 0.45
parseDefineMethod · 0.45
clearMethod · 0.45
loadMethod · 0.45
preprocessMethod · 0.45
cleanupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected