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

Method deallocateTokens

lib/tokenlist.cpp:82–91  ·  view source on GitHub ↗

Deallocate lists..

Source from the content-addressed store, hash-verified

80
81// Deallocate lists..
82void TokenList::deallocateTokens()
83{
84 if (mTokensFrontBack) {
85 deleteTokens(mTokensFrontBack->front);
86 mTokensFrontBack->front = nullptr;
87 mTokensFrontBack->back = nullptr;
88 }
89 // TODO: clear mOrigFiles?
90 mFiles.clear();
91}
92
93// TODO: also update mOrigFiles?
94int TokenList::appendFileIfNew(std::string fileName)

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected