[Lldb-commits] [lldb] [lldb-dap] Add command line option `--connection-timeout` (PR #156803)

Roy Shi via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 9 09:59:25 PDT 2025


================
@@ -519,8 +591,9 @@ int main(int argc, char *argv[]) {
     Socket::SocketProtocol protocol;
     std::string name;
     std::tie(protocol, name) = *maybeProtoclAndName;
-    if (auto Err = serveConnection(protocol, name, log.get(), default_repl_mode,
-                                   pre_init_commands)) {
+    if (auto Err =
----------------
royitaqi wrote:

IIUC the coding convention says that auto can be used when it's obvious what the actual type is from the context.  IMHO the type here *is* obvious (`llvm::Error`). With that said, I can spell it out in my next update.

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


More information about the lldb-commits mailing list