@Override
	public boolean applyTo(Program program) {
		FunctionManager functionManager = program.getFunctionManager();
		Function function = functionManager.getFunctionAt(entryPoint);

		if (function == null) {
			errorMsg = "Function not found at: " + entryPoint.toString();
			return false;
		}

		return function.addTag(tagName);
	}
Constructor

@param tagName the name of the tag to add
@param entryPoint the function address
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/AddFunctionTagCmd.java