mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 03:45:28 +08:00
Merge remote-tracking branch 'origin/GP-790_ghizard_Change_Demangler_constructor_return_type' into patch
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user