[Lldb-commits] [lldb] [lldb][AIX] Some base #if _AIX changes of a minimal lldb build (PR #120979)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 7 23:20:07 PST 2025
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 61b806f43b2d6b3673a8f91393a28c98521472a8 ce3629f80ab7eca189261269fdd0fee1acafa3ba --extensions cpp -- lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp lldb/source/Host/posix/DomainSocket.cpp lldb/source/Plugins/Language/ObjC/Cocoa.cpp lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp b/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
index cb24fc460e..fae7ddb864 100644
--- a/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
+++ b/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
@@ -732,8 +732,8 @@ ConnectionStatus ConnectionFileDescriptor::ConnectFile(
// Set port speed to the available maximum
#ifdef B115200
- ::cfsetospeed(&options, B115200);
- ::cfsetispeed(&options, B115200);
+ ::cfsetospeed(&options, B115200);
+ ::cfsetispeed(&options, B115200);
#elif B57600
::cfsetospeed(&options, B57600);
::cfsetispeed(&options, B57600);
diff --git a/lldb/source/Host/posix/DomainSocket.cpp b/lldb/source/Host/posix/DomainSocket.cpp
index fc073ab371..9b0e330d1a 100644
--- a/lldb/source/Host/posix/DomainSocket.cpp
+++ b/lldb/source/Host/posix/DomainSocket.cpp
@@ -14,9 +14,9 @@
#include <cstddef>
#include <memory>
+#include <strings.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <strings.h>
using namespace lldb;
using namespace lldb_private;
``````````
</details>
https://github.com/llvm/llvm-project/pull/120979
More information about the lldb-commits
mailing list