================
@@ -41,6 +41,21 @@ struct CapabilitiesEventBody {
 };
 llvm::json::Value toJSON(const CapabilitiesEventBody &);
 
+/// The event indicates that some information about a module has changed.
+struct ModuleEventBody {
+  enum Reason : unsigned { eReasonNew, eReasonChanged, eReasonRemoved };
+
+  /// The new, changed, or removed module. In case of `removed` only the module
+  /// id is used.
+  Module module;
+
+  /// The reason for the event.
+  /// Values: 'new', 'changed', 'removed'
+  Reason reason;
+};
+llvm::json::Value toJSON(ModuleEventBody::Reason);
----------------
ashgti wrote:

`const &` on the param, I think

https://github.com/llvm/llvm-project/pull/146966
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to