Skip to content

Commit 7b2b018

Browse files
committed
[lldb/ScriptInterpreter] Fix typo in AbstractMethodCheckerPayload (NFC) (llvm#170187)
This fixes a typo in ScriptedPythonInterface and changes `AbstrackMethodCheckerPayload` to `AbstractMethodCheckerPayload`. Signed-off-by: Med Ismail Bennani <[email protected]> (cherry picked from commit fd8bf3c)
1 parent da0f781 commit 7b2b018

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
4141
eValid
4242
};
4343

44-
struct AbstrackMethodCheckerPayload {
44+
struct AbstractMethodCheckerPayload {
4545

4646
struct InvalidArgumentCountPayload {
4747
InvalidArgumentCountPayload(size_t required, size_t actual)
@@ -55,13 +55,13 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
5555
std::variant<std::monostate, InvalidArgumentCountPayload> payload;
5656
};
5757

58-
llvm::Expected<std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload>>
58+
llvm::Expected<std::map<llvm::StringLiteral, AbstractMethodCheckerPayload>>
5959
CheckAbstractMethodImplementation(
6060
const python::PythonDictionary &class_dict) const {
6161

6262
using namespace python;
6363

64-
std::map<llvm::StringLiteral, AbstrackMethodCheckerPayload> checker;
64+
std::map<llvm::StringLiteral, AbstractMethodCheckerPayload> checker;
6565
#define SET_CASE_AND_CONTINUE(method_name, case) \
6666
{ \
6767
checker[method_name] = {case, {}}; \
@@ -102,7 +102,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
102102
} else {
103103
checker[method_name] = {
104104
AbstractMethodCheckerCases::eInvalidArgumentCount,
105-
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload(
105+
AbstractMethodCheckerPayload::InvalidArgumentCountPayload(
106106
requirement.min_arg_count, arg_info.max_positional_args)};
107107
}
108108
}
@@ -286,7 +286,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
286286
case AbstractMethodCheckerCases::eInvalidArgumentCount: {
287287
auto &payload_variant = method_checker.second.payload;
288288
if (!std::holds_alternative<
289-
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
289+
AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
290290
payload_variant)) {
291291
abstract_method_errors = llvm::joinErrors(
292292
std::move(abstract_method_errors),
@@ -295,7 +295,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
295295
obj_class_name.GetString(), method_checker.first)));
296296
} else {
297297
auto payload = std::get<
298-
AbstrackMethodCheckerPayload::InvalidArgumentCountPayload>(
298+
AbstractMethodCheckerPayload::InvalidArgumentCountPayload>(
299299
payload_variant);
300300
abstract_method_errors = llvm::joinErrors(
301301
std::move(abstract_method_errors),

0 commit comments

Comments
 (0)