GP-790 Demangler constructor return undefined

This commit is contained in:
ghizard 2021-03-22 11:05:19 -04:00
parent b55e34f696
commit 0debac8498

View File

@ -461,8 +461,12 @@ public class DemangledFunction extends DemangledObject {
// If returnType is null check for constructor or destructor names // If returnType is null check for constructor or destructor names
if (THIS_CALL.equals(function.getCallingConventionName())) { if (THIS_CALL.equals(function.getCallingConventionName())) {
String n = getName(); String n = getName();
if (n.equals("~" + namespace.getName()) || n.equals(namespace.getName())) { if (n.equals(namespace.getName())) {
// constructor && destructor // constructor
return DataType.DEFAULT;
}
if (n.equals("~" + namespace.getName())) {
// destructor
return VoidDataType.dataType; return VoidDataType.dataType;
} }
} }