mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch
'origin/GP-3184_ghizard_demangler_fix_missing_use_of_some_primitives--SQUASHED' (Closes #5080)
This commit is contained in:
commit
cd0ea78cc8
1 changed files with 14 additions and 2 deletions
|
@ -64,6 +64,8 @@ public class DemangledDataType extends DemangledType {
|
|||
public final static String BOOL = "bool";
|
||||
public final static String CHAR = "char";
|
||||
public final static String WCHAR_T = "wchar_t";
|
||||
public final static String WCHAR16 = "char16_t";
|
||||
public final static String WCHAR32 = "char32_t";
|
||||
public final static String SHORT = "short";
|
||||
public final static String INT = "int";
|
||||
public final static String INT0_T = "int0_t";
|
||||
|
@ -89,8 +91,9 @@ public class DemangledDataType extends DemangledType {
|
|||
private static final String UNSIGNED_INT = "unsigned int";
|
||||
private static final String UNSIGNED_LONG = "unsigned long";
|
||||
|
||||
public final static String[] PRIMITIVES = { VOID, BOOL, CHAR, WCHAR_T, SHORT, INT, INT0_T, LONG,
|
||||
LONG_LONG, FLOAT, DOUBLE, INT128, FLOAT128, LONG_DOUBLE, };
|
||||
public final static String[] PRIMITIVES =
|
||||
{ VOID, BOOL, CHAR, WCHAR_T, WCHAR16, WCHAR32, SHORT, INT, INT0_T, LONG,
|
||||
LONG_LONG, FLOAT, DOUBLE, INT128, FLOAT128, LONG_DOUBLE, };
|
||||
|
||||
private int arrayDimensions = 0;
|
||||
private boolean isClass;
|
||||
|
@ -232,6 +235,15 @@ public class DemangledDataType extends DemangledType {
|
|||
dt = CharDataType.dataType;
|
||||
}
|
||||
}
|
||||
else if (WCHAR_T.equals(name)) {
|
||||
dt = WideCharDataType.dataType;
|
||||
}
|
||||
else if (WCHAR16.equals(name)) {
|
||||
dt = WideChar16DataType.dataType;
|
||||
}
|
||||
else if (WCHAR32.equals(name)) {
|
||||
dt = WideChar32DataType.dataType;
|
||||
}
|
||||
else if (SHORT.equals(name)) {
|
||||
if (isUnsigned()) {
|
||||
dt = UnsignedShortDataType.dataType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue