[Lldb-commits] [lldb] [lldb] Guard stale SBProcess target access (PR #192842)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Apr 19 04:08:39 PDT 2026
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 origin/main HEAD --extensions h,cpp -- lldb/unittests/API/SBProcessDeleteTargetTest.cpp lldb/include/lldb/Target/Process.h lldb/source/API/SBProcess.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/unittests/API/SBProcessDeleteTargetTest.cpp b/lldb/unittests/API/SBProcessDeleteTargetTest.cpp
index 078d5aa53..0decbd6d0 100644
--- a/lldb/unittests/API/SBProcessDeleteTargetTest.cpp
+++ b/lldb/unittests/API/SBProcessDeleteTargetTest.cpp
@@ -10,11 +10,11 @@
#include "lldb/API/LLDB.h"
#include "TestingSupport/SubsystemRAII.h"
-#include "gtest/gtest.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
+#include "gtest/gtest.h"
using namespace lldb;
using namespace lldb_private;
``````````
</details>
https://github.com/llvm/llvm-project/pull/192842
More information about the lldb-commits
mailing list