[Lldb-commits] [lldb] [lldb/ScriptInterpreter] Fix typo in AbstractMethodCheckerPayload (NFC) (PR #170187)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 1 11:19:30 PST 2025
https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/170187
This fixes a typo in ScriptedPythonInterface and changes `AbstrackMethodCheckerPayload` to `AbstractMethodCheckerPayload`.
>From 559265e67fdb56fef33af1bc45eeb4ad5d802e1e Mon Sep 17 00:00:00 2001
From: Med Ismail Bennani <ismail at bennani.ma>
Date: Sun, 30 Nov 2025 16:03:18 -0800
Subject: [PATCH] [lldb/ScriptInterpreter] Fix typo in
AbstractMethodCheckerPayload (NFC)
This fixes a typo in ScriptedPythonInterface and changes
`AbstrackMethodCheckerPayload` to `AbstractMethodCheckerPayload`.
Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
---
.../Python/Interfaces/ScriptedPythonInterface.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h
index af88a69e34a13..cdda66abc562b 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h
@@ -41,7 +41,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
eValid
};
- struct AbstrackMethodCheckerPayload {
+ struct AbstractMethodCheckerPayload {
struct InvalidArgumentCountPayload {
InvalidArgumentCountPayload(size_t required, size_t actual)
@@ -55,13 +55,13 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
std::variant<std::monostate, InvalidArgumentCountPayload> payload;
};
- llvm::Expected<std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload>>
+ llvm::Expected<std::map<llvm::StringLiteral, AbstractMethodCheckerPayload>>
CheckAbstractMethodImplementation(
const python::PythonDictionary &class_dict) const {
using namespace python;
- std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload> checker;
+ std::map<llvm::StringLiteral, AbstractMethodCheckerPayload> checker;
#define SET_CASE_AND_CONTINUE(method_name, case) \
{ \
checker[method_name] = {case, {}}; \
@@ -102,7 +102,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
} else {
checker[method_name] = {
AbstractMethodCheckerCases::eInvalidArgumentCount,
- AbstrackMethodCheckerPayload::InvalidArgumentCountPayload(
+ AbstractMethodCheckerPayload::InvalidArgumentCountPayload(
requirement.min_arg_count, arg_info.max_positional_args)};
}
}
@@ -291,7 +291,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
case AbstractMethodCheckerCases::eInvalidArgumentCount: {
auto &payload_variant = method_checker.second.payload;
if (!std::holds_alternative<
- AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
+ AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
payload_variant)) {
abstract_method_errors = llvm::joinErrors(
std::move(abstract_method_errors),
@@ -300,7 +300,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
obj_class_name.GetString(), method_checker.first)));
} else {
auto payload = std::get<
- AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
+ AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
payload_variant);
abstract_method_errors = llvm::joinErrors(
std::move(abstract_method_errors),
More information about the lldb-commits
mailing list