Merge remote-tracking branch 'origin/GP-790_ghizard_Change_Demangler_constructor_return_type' into patch

This commit is contained in:
ghidra1 2021-03-23 15:12:25 -04:00
commit 006b3d0ca1

View File

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