dump: Add Function name attribute
This commit is contained in:
parent
a1dfd6cf73
commit
5a57e4030a
|
@ -171,9 +171,11 @@ class Function:
|
||||||
Id = None
|
Id = None
|
||||||
argument = None
|
argument = None
|
||||||
argumentId = None
|
argumentId = None
|
||||||
|
name = None
|
||||||
|
|
||||||
def __init__(self, element):
|
def __init__(self, element):
|
||||||
self.Id = element.get('id')
|
self.Id = element.get('id')
|
||||||
|
self.name = element.get('name')
|
||||||
self.argument = {}
|
self.argument = {}
|
||||||
self.argumentId = {}
|
self.argumentId = {}
|
||||||
for arg in element:
|
for arg in element:
|
||||||
|
|
|
@ -2471,7 +2471,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
if (!scope->functionList.empty()) {
|
if (!scope->functionList.empty()) {
|
||||||
out << " <functionList>" << std::endl;
|
out << " <functionList>" << std::endl;
|
||||||
for (std::list<Function>::const_iterator function = scope->functionList.begin(); function != scope->functionList.end(); ++function) {
|
for (std::list<Function>::const_iterator function = scope->functionList.begin(); function != scope->functionList.end(); ++function) {
|
||||||
out << " <function id=\"" << &*function << '\"';
|
out << " <function id=\"" << &*function << "\" name=\"" << function->name() << '\"';
|
||||||
if (function->argCount() == 0U)
|
if (function->argCount() == 0U)
|
||||||
out << "/>" << std::endl;
|
out << "/>" << std::endl;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue