[Lldb-commits] [lldb] 66f957f - [lldb][AIX] clang-format for common Host.cpp (#132712)

via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 24 04:19:48 PDT 2025


Author: Dhruv Srivastava
Date: 2025-03-24T16:49:45+05:30
New Revision: 66f957f40485ecacea68c608320a52bf1952ec66

URL: https://github.com/llvm/llvm-project/commit/66f957f40485ecacea68c608320a52bf1952ec66
DIFF: https://github.com/llvm/llvm-project/commit/66f957f40485ecacea68c608320a52bf1952ec66.diff

LOG: [lldb][AIX] clang-format for common Host.cpp (#132712)

This PR is in reference to porting LLDB on AIX.

Link to discussions on llvm discourse and github:

1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640
2. https://github.com/llvm/llvm-project/issues/101657
The complete changes for porting are present in this draft PR:
https://github.com/llvm/llvm-project/pull/102601

Clang-format for common/Host.cpp for the followup changes

Added: 
    

Modified: 
    lldb/source/Host/common/Host.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index c52e11ad6ddf2..6e5a75128eb27 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -17,11 +17,11 @@
 #include <grp.h>
 #include <netdb.h>
 #include <pwd.h>
+#include <spawn.h>
 #include <sys/stat.h>
 #include <sys/syscall.h>
 #include <sys/wait.h>
 #include <unistd.h>
-#include <spawn.h>
 #endif
 
 #if defined(__APPLE__)
@@ -194,8 +194,8 @@ MonitorChildProcessThreadFunction(::pid_t pid,
 
     const ::pid_t wait_pid = ::waitpid(pid, &status, 0);
 
-    LLDB_LOG(log, "::waitpid({0}, &status, 0) => pid = {1}, status = {2:x}", pid,
-             wait_pid, status);
+    LLDB_LOG(log, "::waitpid({0}, &status, 0) => pid = {1}, status = {2:x}",
+             pid, wait_pid, status);
 
     if (CheckForMonitorCancellation())
       return nullptr;
@@ -612,7 +612,7 @@ void llvm::format_provider<WaitStatus>::format(const WaitStatus &WS,
 
   assert(Options.empty());
   const char *desc;
-  switch(WS.type) {
+  switch (WS.type) {
   case WaitStatus::Exit:
     desc = "Exited with status";
     break;


        


More information about the lldb-commits mailing list