mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
feat: Ignore __$ReturnUdt in template functions
This commit is contained in:
parent
3737b2df8b
commit
3be0665136
@ -168,11 +168,16 @@ def _parameter_lists_match(self, ghidra_params: "list[Parameter]") -> bool:
|
||||
if stack_match is None:
|
||||
logger.debug("Not found on stack: %s", ghidra_arg)
|
||||
return False
|
||||
# "__formal" is the placeholder for arguments without a name
|
||||
if (
|
||||
stack_match.name != ghidra_arg.getName()
|
||||
and not stack_match.name.startswith("__formal")
|
||||
):
|
||||
|
||||
if stack_match.name.startswith("__formal"):
|
||||
# "__formal" is the placeholder for arguments without a name
|
||||
continue
|
||||
|
||||
if stack_match.name == "__$ReturnUdt":
|
||||
# These appear in templates and cannot be set automatically, as they are a NOTYPE
|
||||
continue
|
||||
|
||||
if stack_match.name != ghidra_arg.getName():
|
||||
logger.debug(
|
||||
"Argument name mismatch: expected %s, found %s",
|
||||
stack_match.name,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user