[Lldb-commits] [PATCH] D31822: [NFC] Adding a new wrapper for getaddrinfo

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 11 09:11:26 PDT 2017


zturner accepted this revision.
zturner added inline comments.
This revision is now accepted and ready to land.


================
Comment at: include/lldb/Host/SocketAddress.h:44-45
+  //----------------------------------------------------------------------------
+  static std::vector<SocketAddress> GetAddressInfo(const char *hostname,
+                                                 const char *servname);
+
----------------
What about using `Twine` here instead of `const char *` literals?


================
Comment at: source/Host/common/SocketAddress.cpp:260
+         service_ptr = service_ptr->ai_next) {
+      addr_list.push_back(SocketAddress(service_ptr));
+    }
----------------
How about `emplace_back(service_ptr)`


https://reviews.llvm.org/D31822





More information about the lldb-commits mailing list