xml dump: output some more info in the dump
This commit is contained in:
parent
d734a98c89
commit
b1e5b015df
|
@ -2110,6 +2110,10 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
out << " type=\"" << scope->type << "\"";
|
out << " type=\"" << scope->type << "\"";
|
||||||
if (!scope->className.empty())
|
if (!scope->className.empty())
|
||||||
out << " className=\"" << toxml(scope->className) << "\"";
|
out << " className=\"" << toxml(scope->className) << "\"";
|
||||||
|
if (scope->classStart)
|
||||||
|
out << " classStart=\"" << scope->classStart << '\"';
|
||||||
|
if (scope->classEnd)
|
||||||
|
out << " classEnd=\"" << scope->classEnd << '\"';
|
||||||
if (scope->nestedIn)
|
if (scope->nestedIn)
|
||||||
out << " nestedIn=\"" << scope->nestedIn << "\"";
|
out << " nestedIn=\"" << scope->nestedIn << "\"";
|
||||||
if (scope->functionList.empty() && scope->varlist.empty()) {
|
if (scope->functionList.empty() && scope->varlist.empty()) {
|
||||||
|
|
|
@ -3824,8 +3824,9 @@ void Tokenizer::dump(std::ostream &out) const
|
||||||
// tokens..
|
// tokens..
|
||||||
out << " <tokenlist>" << std::endl;
|
out << " <tokenlist>" << std::endl;
|
||||||
for (const Token *tok = list.front(); tok; tok = tok->next()) {
|
for (const Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
out << " <token id=\"" << tok << "\" file=\"" << toxml(list.file(tok)) << "\" linenr=\"" << tok->linenr() << "\"";
|
out << " <token id=\"" << tok << "\" file=\"" << toxml(list.file(tok)) << "\" linenr=\"" << tok->linenr() << '\"';
|
||||||
out << " str=\"" << toxml(tok->str()) << "\"";
|
out << " str=\"" << toxml(tok->str()) << '\"';
|
||||||
|
out << " scope=\"" << tok->scope() << '\"';
|
||||||
if (tok->link())
|
if (tok->link())
|
||||||
out << " link=\"" << tok->link() << '\"';
|
out << " link=\"" << tok->link() << '\"';
|
||||||
if (tok->varId() > 0U)
|
if (tok->varId() > 0U)
|
||||||
|
|
Loading…
Reference in New Issue