@Override
	public void fixupDWARFFunction(DWARFFunction dfunc) {
		if (dfunc.params.isEmpty() || dfunc.callingConventionName != null) {
			// if someone else set calling convention, don't override it
			return;
		}

		DWARFVariable firstParam = dfunc.params.get(0);
		if (firstParam.isThis) {
			if (!firstParam.name.isAnon() &&
				!Function.THIS_PARAM_NAME.equals(firstParam.name.getOriginalName())) {
				dfunc.getProgram()
						.logWarningAt(dfunc.address, dfunc.name.getName(),
							"Renamed parameter \"%s\" to %s".formatted(firstParam.name.getName(),
								Function.THIS_PARAM_NAME));
			}
			firstParam.name =
				firstParam.name.replaceName(Function.THIS_PARAM_NAME, Function.THIS_PARAM_NAME);
			dfunc.callingConventionName = CompilerSpec.CALLING_CONVENTION_thiscall;
		}
	}
Update the function's calling convention (if unset) if there is a "this" parameter.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/funcfixup/ThisCallingConventionDWARFFunctionFixup.java