================ @@ -301,13 +294,31 @@ int main_platform(int argc, char *argv[]) { exit(socket_error); } printf("Connection established.\n"); + + std::optional<uint16_t> port = 0; ---------------- DavidSpickett wrote:
If we're going to use optional then this should be left to default construct to std::nullopt (https://en.cppreference.com/w/cpp/utility/optional/nullopt_t) (the equivalent of Haskell Maybe's "Nothing" state). https://github.com/llvm/llvm-project/pull/88845 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits