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

Method dump

lib/templatesimplifier.cpp:243–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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";
245 for (const Token* tok = mToken; tok && !Token::Match(tok, "[;{}]"); tok = tok->next())
246 ret += " <template-token str=\"" + ErrorLogger::toxml(tok->str()) + "\"/>\n";
247 return ret + " </TokenAndName>\n";
248}
249
250const Token * TemplateSimplifier::TokenAndName::aliasStartToken() const
251{

Callers 1

simplifyTemplatesMethod · 0.45

Calls 4

atMethod · 0.80
fileIndexMethod · 0.80
nextMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected