[Lldb-commits] [lldb] [lldb] Fix lldb-server host and port address parsing (PR #191414)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 13 01:56:49 PDT 2026
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 origin/main HEAD --extensions cpp -- lldb/source/Host/common/Socket.cpp lldb/unittests/Host/SocketTest.cpp lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationServerLLGSTest.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/unittests/Host/SocketTest.cpp b/lldb/unittests/Host/SocketTest.cpp
index 1c1a8e709..46be02e2d 100644
--- a/lldb/unittests/Host/SocketTest.cpp
+++ b/lldb/unittests/Host/SocketTest.cpp
@@ -45,17 +45,23 @@ TEST_F(SocketTest, DecodeHostAndPort) {
EXPECT_THAT_EXPECTED(
Socket::DecodeHostAndPort("google.com:65536"),
llvm::FailedWithMessage(
- "invalid host:port specification: 'google.com:65536', both IPv4 (e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats are supported"));
+ "invalid host:port specification: 'google.com:65536', both IPv4 "
+ "(e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats "
+ "are supported"));
EXPECT_THAT_EXPECTED(
Socket::DecodeHostAndPort("google.com:-1138"),
llvm::FailedWithMessage(
- "invalid host:port specification: 'google.com:-1138', both IPv4 (e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats are supported"));
+ "invalid host:port specification: 'google.com:-1138', both IPv4 "
+ "(e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats "
+ "are supported"));
EXPECT_THAT_EXPECTED(
Socket::DecodeHostAndPort("google.com:65536"),
llvm::FailedWithMessage(
- "invalid host:port specification: 'google.com:65536', both IPv4 (e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats are supported"));
+ "invalid host:port specification: 'google.com:65536', both IPv4 "
+ "(e.g., localhost:8080) or IPv6 (e.g, [2001:db8::1]:8080) formats "
+ "are supported"));
EXPECT_THAT_EXPECTED(Socket::DecodeHostAndPort("*:0"),
llvm::HasValue(Socket::HostAndPort{"*", 0}));
``````````
</details>
https://github.com/llvm/llvm-project/pull/191414
More information about the lldb-commits
mailing list