[Lldb-commits] [lldb] Add a unit test for SBBreakpoint::SetCallback (PR #96001)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 20 15:10:58 PDT 2024


================
@@ -99,10 +99,15 @@ typedef std::optional<FileSpec> (*SymbolLocatorLocateExecutableSymbolFile)(
 typedef bool (*SymbolLocatorDownloadObjectAndSymbolFile)(
     ModuleSpec &module_spec, Status &error, bool force_lookup,
     bool copy_executable);
-typedef bool (*BreakpointHitCallback)(void *baton,
-                                      StoppointCallbackContext *context,
-                                      lldb::user_id_t break_id,
-                                      lldb::user_id_t break_loc_id);
+// typedef bool (*BreakpointHitCallback)(void *baton,
+//                                       StoppointCallbackContext *context,
+//                                       lldb::user_id_t break_id,
+//                                       lldb::user_id_t break_loc_id);
+typedef std::function<bool(void *baton, StoppointCallbackContext *context,
----------------
medismailben wrote:

Can you do `using` instead of `typedef` here ?

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


More information about the lldb-commits mailing list