From b1e5b015df60d46249df64ddfbe3b26d2a7f3cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 16 Jul 2014 15:27:13 +0200 Subject: [PATCH] xml dump: output some more info in the dump --- lib/symboldatabase.cpp | 4 ++++ lib/tokenize.cpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 10a8d3cd5..60323e162 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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()) { diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index aa65fbd91..1e102937b 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3824,8 +3824,9 @@ void Tokenizer::dump(std::ostream &out) const // tokens.. out << " " << std::endl; for (const Token *tok = list.front(); tok; tok = tok->next()) { - out << " linenr() << "\""; - out << " str=\"" << toxml(tok->str()) << "\""; + out << " linenr() << '\"'; + out << " str=\"" << toxml(tok->str()) << '\"'; + out << " scope=\"" << tok->scope() << '\"'; if (tok->link()) out << " link=\"" << tok->link() << '\"'; if (tok->varId() > 0U)