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

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 23 01:30:20 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>>>
----------------
labath wrote:

Good idea. That means I can also get rid of all the autos I was too lazy to type.

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


More information about the lldb-commits mailing list