[Lldb-commits] [lldb] [lldb] Use llvm::Error instead of CommandReturnObject for error reporting (PR #125125)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 30 14:33:02 PST 2025


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 26c2da5a122532035b8bf63af89208d6d799e40e 24ddc550e3ee61b863cbaea05ff49981bc20f7ad --extensions h,cpp -- lldb/include/lldb/Interpreter/Options.h lldb/source/Interpreter/CommandAlias.cpp lldb/source/Interpreter/CommandObject.cpp lldb/source/Interpreter/Options.cpp lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Interpreter/CommandAlias.cpp b/lldb/source/Interpreter/CommandAlias.cpp
index ac0c7a3279..b45fcca358 100644
--- a/lldb/source/Interpreter/CommandAlias.cpp
+++ b/lldb/source/Interpreter/CommandAlias.cpp
@@ -23,8 +23,8 @@ using namespace lldb_private;
 
 static llvm::Error
 ProcessAliasOptionsArgs(lldb::CommandObjectSP &cmd_obj_sp,
-                                    llvm::StringRef options_args,
-                                    OptionArgVectorSP &option_arg_vector_sp) {
+                        llvm::StringRef options_args,
+                        OptionArgVectorSP &option_arg_vector_sp) {
   OptionArgVector *option_arg_vector = option_arg_vector_sp.get();
 
   if (options_args.size() < 1)
@@ -61,7 +61,7 @@ ProcessAliasOptionsArgs(lldb::CommandObjectSP &cmd_obj_sp,
         if (!entry.ref().empty())
           option_arg_vector->emplace_back(
               std::string(CommandInterpreter::g_argument), -1,
-                                          std::string(entry.ref()));
+              std::string(entry.ref()));
       }
     }
   }

``````````

</details>


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


More information about the lldb-commits mailing list