[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 <ismail@bennani.ma>
This commit is contained in:
1 parent
1335a11176
commit
21026073e3
7 files changed
+158
-54
No files matched your search
+4
-3
@@ -28,9 +28,10 @@ public:
|
||||
StructuredData::DictionarySP args_sp,
|
||||
StructuredData::Generic *script_obj = nullptr) override;
|
||||
|
||||
llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods() const override {
|
||||
return llvm::SmallVector<llvm::StringLiteral>(
|
||||
{"get_stop_reason", "get_register_context"});
|
||||
llvm::SmallVector<AbstractMethodRequirement>
|
||||
GetAbstractMethodRequirements() const override {
|
||||
return llvm::SmallVector<AbstractMethodRequirement>(
|
||||
{{"get_stop_reason"}, {"get_register_context"}});
|
||||
}
|
||||
|
||||
lldb::tid_t GetThreadID() override;
|
||||
|
||||
Reference in new issue
Block a user