[Lldb-commits] [lldb] [LLDB][NFC] Remove Debugger dependency in SystemLifetimeManager (PR #134383)

via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 4 06:58:26 PDT 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 HEAD~1 HEAD --extensions cpp,h -- lldb/include/lldb/Initialization/SystemLifetimeManagerDbg.h lldb/include/lldb/Initialization/SystemLifetimeManager.h lldb/source/API/SBDebugger.cpp lldb/source/Initialization/SystemLifetimeManager.cpp lldb/tools/lldb-test/lldb-test.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/include/lldb/Initialization/SystemLifetimeManagerDbg.h b/lldb/include/lldb/Initialization/SystemLifetimeManagerDbg.h
index 81e0b9a38..6caece499 100644
--- a/lldb/include/lldb/Initialization/SystemLifetimeManagerDbg.h
+++ b/lldb/include/lldb/Initialization/SystemLifetimeManagerDbg.h
@@ -9,8 +9,8 @@
 #ifndef LLDB_INITIALIZATION_SYSTEMLIFETIMEMANAGERDBG_H
 #define LLDB_INITIALIZATION_SYSTEMLIFETIMEMANAGERDBG_H
 
-#include "lldb/Initialization/SystemLifetimeManager.h"
 #include "lldb/Core/Debugger.h"
+#include "lldb/Initialization/SystemLifetimeManager.h"
 
 namespace lldb_private {
 
@@ -19,18 +19,18 @@ public:
   SystemLifetimeManagerDbg() : SystemLifetimeManager() {};
 
 private:
-  virtual void InitializeDebugger(LoadPluginCallbackType plugin_callback) override {
+  virtual void
+  InitializeDebugger(LoadPluginCallbackType plugin_callback) override {
     Debugger::Initialize(plugin_callback);
   };
 
-  virtual void TerminateDebugger() override {
-    Debugger::Terminate();
-  };
+  virtual void TerminateDebugger() override { Debugger::Terminate(); };
 
   // Noncopyable.
   SystemLifetimeManagerDbg(const SystemLifetimeManagerDbg &other) = delete;
-  SystemLifetimeManagerDbg &operator=(const SystemLifetimeManagerDbg &other) = delete;
+  SystemLifetimeManagerDbg &
+  operator=(const SystemLifetimeManagerDbg &other) = delete;
 };
-}
+} // namespace lldb_private
 
 #endif

``````````

</details>


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


More information about the lldb-commits mailing list