diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2023-02-28 12:52:21 -0800 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2023-02-28 12:52:32 -0800 |
commit | 35d17c17a6702c70e877c63e9f7c4ce3e35c1bb9 (patch) | |
tree | af6c603f49b7314155ecf8886edbe5cebab3d1ae /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 110ee16467734c0e782c93cfb44c68321b012908 (diff) | |
download | llvm-35d17c17a6702c70e877c63e9f7c4ce3e35c1bb9.zip llvm-35d17c17a6702c70e877c63e9f7c4ce3e35c1bb9.tar.gz llvm-35d17c17a6702c70e877c63e9f7c4ce3e35c1bb9.tar.bz2 |
[lldb] Remove const qualifier on bool argument passed by value
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 12 | ||||
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 00d8d38..6472a93 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -1217,7 +1217,7 @@ Status ScriptInterpreterPythonImpl::SetBreakpointCommandCallback( Status ScriptInterpreterPythonImpl::SetBreakpointCommandCallback( BreakpointOptions &bp_options, const char *command_body_text, - const bool is_callback) { + bool is_callback) { return SetBreakpointCommandCallback(bp_options, command_body_text, {}, /*uses_extra_args=*/false, is_callback); } @@ -1226,7 +1226,7 @@ Status ScriptInterpreterPythonImpl::SetBreakpointCommandCallback( Status ScriptInterpreterPythonImpl::SetBreakpointCommandCallback( BreakpointOptions &bp_options, const char *command_body_text, StructuredData::ObjectSP extra_args_sp, bool uses_extra_args, - const bool is_callback) { + bool is_callback) { auto data_up = std::make_unique<CommandDataPython>(extra_args_sp); // Split the command_body_text into lines, and pass that to // GenerateBreakpointCommandCallbackData. That will wrap the body in an @@ -1250,7 +1250,7 @@ Status ScriptInterpreterPythonImpl::SetBreakpointCommandCallback( // Set a Python one-liner as the callback for the watchpoint. void ScriptInterpreterPythonImpl::SetWatchpointCommandCallback( WatchpointOptions *wp_options, const char *user_input, - const bool is_callback) { + bool is_callback) { auto data_up = std::make_unique<WatchpointOptions::CommandData>(); // It's necessary to set both user_source and script_source to the oneliner. @@ -1283,7 +1283,7 @@ Status ScriptInterpreterPythonImpl::ExportFunctionDefinitionToInterpreter( Status ScriptInterpreterPythonImpl::GenerateFunction(const char *signature, const StringList &input, - const bool is_callback) { + bool is_callback) { Status error; int num_lines = input.GetSize(); if (num_lines == 0) { @@ -2003,7 +2003,7 @@ bool ScriptInterpreterPythonImpl::GenerateTypeSynthClass( Status ScriptInterpreterPythonImpl::GenerateBreakpointCommandCallbackData( StringList &user_input, std::string &output, bool has_extra_args, - const bool is_callback) { + bool is_callback) { static uint32_t num_created_functions = 0; user_input.RemoveBlankLines(); StreamString sstr; @@ -2032,7 +2032,7 @@ Status ScriptInterpreterPythonImpl::GenerateBreakpointCommandCallbackData( } bool ScriptInterpreterPythonImpl::GenerateWatchpointCommandCallbackData( - StringList &user_input, std::string &output, const bool is_callback) { + StringList &user_input, std::string &output, bool is_callback) { static uint32_t num_created_functions = 0; user_input.RemoveBlankLines(); StreamString sstr; diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h index b3568e6..21fdf12 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h @@ -189,16 +189,16 @@ public: const lldb_private::ExecutionContext &exe_ctx) override; Status GenerateFunction(const char *signature, const StringList &input, - const bool is_callback) override; + bool is_callback) override; Status GenerateBreakpointCommandCallbackData(StringList &input, std::string &output, bool has_extra_args, - const bool is_callback) override; + bool is_callback) override; bool GenerateWatchpointCommandCallbackData(StringList &input, std::string &output, - const bool is_callback) override; + bool is_callback) override; bool GetScriptedSummary(const char *function_name, lldb::ValueObjectSP valobj, StructuredData::ObjectSP &callee_wrapper_sp, @@ -262,7 +262,7 @@ public: /// Set the callback body text into the callback for the breakpoint. Status SetBreakpointCommandCallback(BreakpointOptions &bp_options, const char *callback_body, - const bool is_callback) override; + bool is_callback) override; Status SetBreakpointCommandCallbackFunction( BreakpointOptions &bp_options, const char *function_name, @@ -277,12 +277,12 @@ public: const char *command_body_text, StructuredData::ObjectSP extra_args_sp, bool uses_extra_args, - const bool is_callback); + bool is_callback); /// Set a one-liner as the callback for the watchpoint. void SetWatchpointCommandCallback(WatchpointOptions *wp_options, const char *user_input, - const bool is_callback) override; + bool is_callback) override; const char *GetDictionaryName() { return m_dictionary_name.c_str(); } |