Skip to content

Commit 66f957f

Browse files
[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. #101657 The complete changes for porting are present in this draft PR: #102601 Clang-format for common/Host.cpp for the followup changes
1 parent 6a8606e commit 66f957f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
#include <grp.h>
1818
#include <netdb.h>
1919
#include <pwd.h>
20+
#include <spawn.h>
2021
#include <sys/stat.h>
2122
#include <sys/syscall.h>
2223
#include <sys/wait.h>
2324
#include <unistd.h>
24-
#include <spawn.h>
2525
#endif
2626

2727
#if defined(__APPLE__)
@@ -194,8 +194,8 @@ MonitorChildProcessThreadFunction(::pid_t pid,
194194

195195
const ::pid_t wait_pid = ::waitpid(pid, &status, 0);
196196

197-
LLDB_LOG(log, "::waitpid({0}, &status, 0) => pid = {1}, status = {2:x}", pid,
198-
wait_pid, status);
197+
LLDB_LOG(log, "::waitpid({0}, &status, 0) => pid = {1}, status = {2:x}",
198+
pid, wait_pid, status);
199199

200200
if (CheckForMonitorCancellation())
201201
return nullptr;
@@ -612,7 +612,7 @@ void llvm::format_provider<WaitStatus>::format(const WaitStatus &WS,
612612

613613
assert(Options.empty());
614614
const char *desc;
615-
switch(WS.type) {
615+
switch (WS.type) {
616616
case WaitStatus::Exit:
617617
desc = "Exited with status";
618618
break;

0 commit comments

Comments
 (0)