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