dump: update <TemplateSimplifier> info in dump file

This commit is contained in:
Daniel Marjamäki 2023-03-09 21:58:33 +01:00
parent 901b2ab838
commit f4b32d74c7
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ TemplateSimplifier::TokenAndName::~TokenAndName()
std::string TemplateSimplifier::TokenAndName::dump(const std::vector<std::string>& fileNames) const { std::string TemplateSimplifier::TokenAndName::dump(const std::vector<std::string>& fileNames) const {
std::string ret = " <TokenAndName name=\"" + mName + "\" file=\"" + ErrorLogger::toxml(fileNames.at(mToken->fileIndex())) + "\" line=\"" + std::to_string(mToken->linenr()) + "\">\n"; std::string ret = " <TokenAndName name=\"" + mName + "\" file=\"" + ErrorLogger::toxml(fileNames.at(mToken->fileIndex())) + "\" line=\"" + std::to_string(mToken->linenr()) + "\">\n";
for (const Token* tok = mToken; tok && !Token::Match(tok, "[;{}]"); tok = tok->next()) for (const Token* tok = mToken; tok && !Token::Match(tok, "[;{}]"); tok = tok->next())
ret += " " + ErrorLogger::toxml(tok->str()) + "\n"; ret += " <template-token str=\"" + ErrorLogger::toxml(tok->str()) + "\"/>\n";
return ret + " </TokenAndName>\n"; return ret + " </TokenAndName>\n";
} }