[Lldb-commits] [lldb] [lldb] Add Socket::CreatePair (PR #145015)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 20 11:17:13 PDT 2025


================
@@ -106,6 +106,10 @@ class Socket : public IOObject {
   static std::unique_ptr<Socket> Create(const SocketProtocol protocol,
                                         Status &error);
 
+  static llvm::Expected<
+      std::pair<std::unique_ptr<Socket>, std::unique_ptr<Socket>>>
----------------
JDevlieghere wrote:

Nit: Maybe add a `Socket::Pair` or `Socket::SocketPair` typedef to make these declarations a little less verbose?

```
using Pair = std::pair<std::unique_ptr<Socket>, std::unique_ptr<Socket>>;
```

https://github.com/llvm/llvm-project/pull/145015


More information about the lldb-commits mailing list