diff --git a/addons/cppcheckdata.py b/addons/cppcheckdata.py index 8e9d8c595..34d2927e1 100644 --- a/addons/cppcheckdata.py +++ b/addons/cppcheckdata.py @@ -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: diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 4f81a80fe..511fd97be 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2471,7 +2471,7 @@ void SymbolDatabase::printXml(std::ostream &out) const if (!scope->functionList.empty()) { out << " " << std::endl; for (std::list::const_iterator function = scope->functionList.begin(); function != scope->functionList.end(); ++function) { - out << " name() << '\"'; if (function->argCount() == 0U) out << "/>" << std::endl; else {