xml dump: output some more info in the dump

This commit is contained in:
Daniel Marjamäki 2014-07-16 15:27:13 +02:00
parent d734a98c89
commit b1e5b015df
2 changed files with 7 additions and 2 deletions

View File

@ -2110,6 +2110,10 @@ void SymbolDatabase::printXml(std::ostream &out) const
out << " type=\"" << scope->type << "\"";
if (!scope->className.empty())
out << " className=\"" << toxml(scope->className) << "\"";
if (scope->classStart)
out << " classStart=\"" << scope->classStart << '\"';
if (scope->classEnd)
out << " classEnd=\"" << scope->classEnd << '\"';
if (scope->nestedIn)
out << " nestedIn=\"" << scope->nestedIn << "\"";
if (scope->functionList.empty() && scope->varlist.empty()) {

View File

@ -3824,8 +3824,9 @@ void Tokenizer::dump(std::ostream &out) const
// tokens..
out << " <tokenlist>" << std::endl;
for (const Token *tok = list.front(); tok; tok = tok->next()) {
out << " <token id=\"" << tok << "\" file=\"" << toxml(list.file(tok)) << "\" linenr=\"" << tok->linenr() << "\"";
out << " str=\"" << toxml(tok->str()) << "\"";
out << " <token id=\"" << tok << "\" file=\"" << toxml(list.file(tok)) << "\" linenr=\"" << tok->linenr() << '\"';
out << " str=\"" << toxml(tok->str()) << '\"';
out << " scope=\"" << tok->scope() << '\"';
if (tok->link())
out << " link=\"" << tok->link() << '\"';
if (tok->varId() > 0U)