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 cpp,h --
lldb/include/lldb/Target/Process.h lldb/source/Target/Process.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/include/lldb/Target/Process.h
b/lldb/include/lldb/Target/Process.h
index 40dcad808..7a15adebc 100644
--- a/lldb/include/lldb/Target/Process.h
+++ b/lldb/include/lldb/Target/Process.h
@@ -3213,9 +3213,9 @@ protected:
bool is_secondary_thread, // FIXME: Can I get rid of this?
llvm::StringRef thread_name)
: m_process(process), m_public_state(public_state),
- m_private_state(private_state),
- m_is_secondary_thread(is_secondary_thread),
m_thread_name(thread_name)
- {}
+ m_private_state(private_state),
+ m_is_secondary_thread(is_secondary_thread),
+ m_thread_name(thread_name) {}
// This returns false if we couldn't start up the thread. If that happens,
// you won't be doing any debugging today.
bool StartupThread();
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 6196b1a60..0cd46f2fc 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -3914,10 +3914,7 @@ bool Process::ShouldBroadcastEvent(Event *event_ptr) {
bool Process::PrivateStateThread::StartupThread() {
llvm::Expected<HostThread> private_state_thread =
ThreadLauncher::LaunchThread(
- m_thread_name,
- [this] {
- return m_process.RunPrivateStateThread();
- },
+ m_thread_name, [this] { return m_process.RunPrivateStateThread(); },
8 * 1024 * 1024);
if (!private_state_thread) {
LLDB_LOG_ERROR(GetLog(LLDBLog::Host), private_state_thread.takeError(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/180255
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits