[Lldb-commits] [lldb] [llvm] [lldb-dap] Add unknown request handler (PR #181109)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 12 11:50:03 PST 2026


================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "DAPError.h"
+#include "Protocol/ProtocolRequests.h"
+#include "RequestHandler.h"
+#include "llvm/Support/Error.h"
+
+using namespace lldb_dap;
+using namespace lldb_dap::protocol;
+
+llvm::Error UnknownRequestHandler::Run(const UnknownArguments &args) const {
+  return llvm::make_error<DAPError>("Unknown request");
----------------
JDevlieghere wrote:

Diagnostics [should](https://llvm.org/docs/CodingStandards.html#error-and-warning-messages) start with a lowercase character.
```suggestion
  return llvm::make_error<DAPError>("unknown request");
```


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


More information about the lldb-commits mailing list