diff options
author | Dhruv Srivastava <dhruv.srivastava@ibm.com> | 2024-12-19 14:53:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 09:23:02 +0000 |
commit | 2210da3b823ccf21fc634c858827c9f12c864b51 (patch) | |
tree | 2e5597680fa4b24b05f4e68017a6a13223d38d4c | |
parent | 9fc2fadbfcb34df5f72bdaed28a7874bf584eed7 (diff) | |
download | llvm-2210da3b823ccf21fc634c858827c9f12c864b51.zip llvm-2210da3b823ccf21fc634c858827c9f12c864b51.tar.gz llvm-2210da3b823ccf21fc634c858827c9f12c864b51.tar.bz2 |
[lldb][AIX] clang-format changes for ProcessLauncherPosixFork.cpp (#120459)
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
Added clang-format changes for ProcessLauncherPosixFork.cpp which will
be followed by ptrace changes in:
- https://github.com/llvm/llvm-project/pull/120390
-rw-r--r-- | lldb/source/Host/posix/ProcessLauncherPosixFork.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp index 4a9469b..4a0437b 100644 --- a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp +++ b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp @@ -21,8 +21,8 @@ #include <sys/wait.h> #include <unistd.h> -#include <sstream> #include <csignal> +#include <sstream> #ifdef __ANDROID__ #include <android/api-level.h> @@ -47,8 +47,7 @@ static void write_string(int error_fd, const char *str) { (void)r; } -[[noreturn]] static void ExitWithError(int error_fd, - const char *operation) { +[[noreturn]] static void ExitWithError(int error_fd, const char *operation) { int err = errno; write_string(error_fd, operation); write_string(error_fd, " failed: "); |