Dumps: Added isVirtual/isImplicitlyVirtual info
This commit is contained in:
parent
fb803789fd
commit
97c86ff0e6
|
@ -316,11 +316,18 @@ class Function:
|
||||||
tokenDef = None
|
tokenDef = None
|
||||||
tokenDefId = None
|
tokenDefId = None
|
||||||
name = None
|
name = None
|
||||||
|
isVirtual = None
|
||||||
|
isImplicitlyVirtual = None
|
||||||
|
|
||||||
def __init__(self, element):
|
def __init__(self, element):
|
||||||
self.Id = element.get('id')
|
self.Id = element.get('id')
|
||||||
self.tokenDefId = element.get('tokenDef')
|
self.tokenDefId = element.get('tokenDef')
|
||||||
self.name = element.get('name')
|
self.name = element.get('name')
|
||||||
|
isVirtual = element.get('isVirtual')
|
||||||
|
self.isVirtual = (isVirtual and isVirtual == 'true')
|
||||||
|
isImplicitlyVirtual = element.get('isImplicitlyVirtual')
|
||||||
|
self.isImplicitlyVirtual = (isImplicitlyVirtual and isImplicitlyVirtual == 'true')
|
||||||
|
|
||||||
self.argument = {}
|
self.argument = {}
|
||||||
self.argumentId = {}
|
self.argumentId = {}
|
||||||
for arg in element:
|
for arg in element:
|
||||||
|
|
|
@ -3005,6 +3005,12 @@ void SymbolDatabase::printXml(std::ostream &out) const
|
||||||
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 << "\" tokenDef=\"" << function->tokenDef << "\" name=\"" << ErrorLogger::toxml(function->name()) << '\"';
|
out << " <function id=\"" << &*function << "\" tokenDef=\"" << function->tokenDef << "\" name=\"" << ErrorLogger::toxml(function->name()) << '\"';
|
||||||
|
if (function->nestedIn->definedType) {
|
||||||
|
if (function->isVirtual())
|
||||||
|
out << " isVirtual=\"true\"";
|
||||||
|
else if (function->isImplicitlyVirtual())
|
||||||
|
out << " isImplicitlyVirtual=\"true\"";
|
||||||
|
}
|
||||||
if (function->argCount() == 0U)
|
if (function->argCount() == 0U)
|
||||||
out << "/>" << std::endl;
|
out << "/>" << std::endl;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue