[Lldb-commits] [lldb] [lldb] Support any flag to _regexp-bt (PR #116260)

via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 14 09:24:54 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c9719ad5cd7e0fa65b52333f28aa62c05052d989 bc771d2c7dc223c353fbfca9dbe491e08311950b --extensions cpp -- lldb/source/Interpreter/CommandInterpreter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 2cdf5e6da6..2ff8d7a019 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -852,8 +852,10 @@ void CommandInterpreter::LoadCommandDictionary() {
     if (bt_regex_cmd_up->AddRegexCommand("^([[:digit:]]+)[[:space:]]*$",
                                          "thread backtrace -c %1") &&
         bt_regex_cmd_up->AddRegexCommand("^(-.*)$", "thread backtrace %1") &&
-        bt_regex_cmd_up->AddRegexCommand("^all[[:space:]]*$", "thread backtrace all") &&
-        bt_regex_cmd_up->AddRegexCommand("^[[:space:]]*$", "thread backtrace")) {
+        bt_regex_cmd_up->AddRegexCommand("^all[[:space:]]*$",
+                                         "thread backtrace all") &&
+        bt_regex_cmd_up->AddRegexCommand("^[[:space:]]*$",
+                                         "thread backtrace")) {
       CommandObjectSP command_sp(bt_regex_cmd_up.release());
       m_command_dict[std::string(command_sp->GetCommandName())] = command_sp;
     }

``````````

</details>


https://github.com/llvm/llvm-project/pull/116260


More information about the lldb-commits mailing list