From 21026073e3b0583caf0c81564c4d7ebf002fe67b Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Thu, 19 Sep 2024 13:55:41 -0700 Subject: [lldb/Interpreter] Add requirements to Scripted Interface abstract methods (#109063) This patch adds new requirements to the Scripted Interface abstract method checker to check the minimum number of argument for abstract methods. This check is done when creating the interface object so the object is not created if the user implementation doesn't match the abstract method requirement. Signed-off-by: Med Ismail Bennani --- .../Python/Interfaces/ScriptedThreadPlanPythonInterface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h index 5e78ae764eeb..2d017396df7e 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h @@ -30,7 +30,8 @@ public: lldb::ThreadPlanSP thread_plan_sp, const StructuredDataImpl &args_sp) override; - llvm::SmallVector GetAbstractMethods() const override { + llvm::SmallVector + GetAbstractMethodRequirements() const override { return {}; } -- cgit v1.2.3