[Lldb-commits] [lldb] [lldb-dap] Migrate locations request to structured types (PR #171099)

Sergei Druzhkov via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 8 11:57:19 PST 2025


================
@@ -695,4 +695,23 @@ llvm::json::Value toJSON(const EvaluateResponseBody &Body) {
   return result;
 }
 
+bool fromJSON(const llvm::json::Value &Params, LocationsArguments &Args,
+              llvm::json::Path Path) {
+  json::ObjectMapper O(Params, Path);
+  return O && O.map("locationReference", Args.locationReference);
+}
+
+llvm::json::Value toJSON(const LocationsResponseBody &Body) {
+  json::Object result{{"source", Body.source}, {"line", Body.line}};
----------------
DrSergei wrote:

Added

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


More information about the lldb-commits mailing list