[Lldb-commits] [lldb] [lldb] Adding structured types for existing MCP calls. (PR #155460)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 26 12:09:25 PDT 2025


================
@@ -81,6 +81,10 @@ bool operator==(const Request &a, const Request &b) {
   return a.id == b.id && a.method == b.method && a.params == b.params;
 }
 
+void PrintTo(const Request &req, std::ostream *os) {
+  *os << formatv("{0}", toJSON(req)).str();
+}
----------------
ashgti wrote:

Sure, I can move it into a support file there.

I figured this would likely be unreachable code in a normal build, since only the unit tests would have a reference to this, but I'll move it out.

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


More information about the lldb-commits mailing list