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

Method ~TokenAndName

lib/templatesimplifier.cpp:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237TemplateSimplifier::TokenAndName::~TokenAndName()
238{
239 if (mToken && mToken->templateSimplifierPointers())
240 mToken->templateSimplifierPointers()->erase(this);
241}
242
243std::string TemplateSimplifier::TokenAndName::dump(const std::vector<std::string>& fileNames) const {
244 std::string ret = " <TokenAndName name=\"" + ErrorLogger::toxml(mName) + "\" file=\"" + ErrorLogger::toxml(fileNames.at(mToken->fileIndex())) + "\" line=\"" + std::to_string(mToken->linenr()) + "\">\n";

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected