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 c6dc9cd1fbfcb47aa193f16cb02b97876643e1fe 64505f573341c16a62eda786c4710d3a7233cecc -- lldb/test/API/driver/quit_speed/main.c lldb/include/lldb/Target/Process.h lldb/source/Core/Debugger.cpp lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp lldb/source/Target/Process.cpp lldb/source/Target/ProcessTrace.cpp lldb/source/Target/Target.cpp `````````` </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 889f553f89..d0f054dd54 100644 --- a/lldb/include/lldb/Target/Process.h +++ b/lldb/include/lldb/Target/Process.h @@ -3085,7 +3085,7 @@ protected: // When we are "Finalizing" we need to do some cleanup. But if the Finalize // call is coming in the Destructor, we can't do any actual work in the // process because that is likely to call "shared_from_this" which crashes - // if run while destructing. We use this flag to determine that. + // if run while destructing. We use this flag to determine that. std::atomic<bool> m_destructing; /// Mask for code an data addresses. The default value (0) means no mask is diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 23f72645e8..aa3b04c43c 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1418,7 +1418,7 @@ StateType Process::GetPrivateState() { return m_private_state.GetValue(); } void Process::SetPrivateState(StateType new_state) { // Use m_destructing not m_finalizing here. If we are finalizing a process - // that we haven't started tearing down, we'd like to be able to nicely + // that we haven't started tearing down, we'd like to be able to nicely // detach if asked, but that requires the event system be live. That will // not be true for an in-the-middle-of-being-destructed Process, since the // event system relies on Process::shared_from_this, which may have already diff --git a/lldb/test/API/driver/quit_speed/main.c b/lldb/test/API/driver/quit_speed/main.c index fd041a4fe9..7daea6fe52 100644 --- a/lldb/test/API/driver/quit_speed/main.c +++ b/lldb/test/API/driver/quit_speed/main.c @@ -1,9 +1,7 @@ #include <unistd.h> -int -main (int argc, char **argv) -{ - while(1) +int main(int argc, char **argv) { + while (1) usleep(5); return 0; `````````` </details> https://github.com/llvm/llvm-project/pull/74687 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits