xml dump: output a <variables> with all variables
This commit is contained in:
parent
2e7a72856a
commit
6732556eb8
|
@ -2100,7 +2100,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
out << ">" << std::endl;
|
out << ">" << std::endl;
|
||||||
for (unsigned int argnr = 0; argnr < function->argCount(); ++argnr) {
|
for (unsigned int argnr = 0; argnr < function->argCount(); ++argnr) {
|
||||||
const Variable *arg = function->getArgumentVar(argnr);
|
const Variable *arg = function->getArgumentVar(argnr);
|
||||||
out << " <arg nr=\"" << argnr << "\" variable=\"" << arg << "\"/>" << std::endl;
|
out << " <arg nr=\"" << argnr+1 << "\" variable=\"" << arg << "\"/>" << std::endl;
|
||||||
}
|
}
|
||||||
out << " </function>" << std::endl;
|
out << " </function>" << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -2110,8 +2110,19 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
}
|
}
|
||||||
if (!scope->varlist.empty()) {
|
if (!scope->varlist.empty()) {
|
||||||
out << " <varlist>" << std::endl;
|
out << " <varlist>" << std::endl;
|
||||||
for (std::list<Variable>::const_iterator var = scope->varlist.begin(); var != scope->varlist.end(); ++var) {
|
for (std::list<Variable>::const_iterator var = scope->varlist.begin(); var != scope->varlist.end(); ++var)
|
||||||
out << " <var id=\"" << &*var << '\"';
|
out << " <var id=\"" << &*var << "\"/>" << std::endl;
|
||||||
|
out << " </varlist>" << std::endl;
|
||||||
|
}
|
||||||
|
out << " </scope>" << std::endl;
|
||||||
|
}
|
||||||
|
out << " </scopes>" << std::endl;
|
||||||
|
|
||||||
|
// Variables..
|
||||||
|
out << " <variables>" << std::endl;
|
||||||
|
for (unsigned int i = 1U; i < _variableList.size(); i++) {
|
||||||
|
const Variable *var = _variableList[i];
|
||||||
|
out << " <var id=\"" << var << '\"';
|
||||||
out << " nameToken=\"" << var->nameToken() << '\"';
|
out << " nameToken=\"" << var->nameToken() << '\"';
|
||||||
out << " typeStartToken=\"" << var->typeStartToken() << '\"';
|
out << " typeStartToken=\"" << var->typeStartToken() << '\"';
|
||||||
out << " typeEndToken=\"" << var->typeEndToken() << '\"';
|
out << " typeEndToken=\"" << var->typeEndToken() << '\"';
|
||||||
|
@ -2124,11 +2135,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
out << " isStatic=\"" << (var->isStatic() ? "true" : "false") << '\"';
|
out << " isStatic=\"" << (var->isStatic() ? "true" : "false") << '\"';
|
||||||
out << "/>" << std::endl;
|
out << "/>" << std::endl;
|
||||||
}
|
}
|
||||||
out << " </varlist>" << std::endl;
|
out << " </variables>" << std::endl;
|
||||||
}
|
|
||||||
out << " </scope>" << std::endl;
|
|
||||||
}
|
|
||||||
out << " </scopes>" << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue