dump: Add Function name attribute

This commit is contained in:
Daniel Marjamäki 2015-07-28 14:18:58 +02:00
parent a1dfd6cf73
commit 5a57e4030a
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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 {