mib added inline comments.

================
Comment at: lldb/source/API/SBDebugger.cpp:175-186
+  const ProgressEventData *progress_data =
+      ProgressEventData::GetEventDataFromEvent(event.get());
+  if (!progress_data)
+    return {};
+
+  auto dictionary = std::make_unique<StructuredData::Dictionary>();
+  dictionary->AddStringItem("message", progress_data->GetMessage());
----------------
It feels wrong me that we're doing this at the SB API levels, I feel like we 
should have an overload of `ProgressEventData::GetEventDataFromEvent` that 
returns an actual structured data dictionary. This way, when we extend the 
progress events, we won't need to update all the places where 
`GetEventDataFromEvent` is called from.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143687/new/

https://reviews.llvm.org/D143687

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to