[Lldb-commits] [PATCH] D149719: [LLDB] Add a hook to notify REPLs that an expression was evaluated

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 3 09:51:53 PDT 2023


bulbazord added inline comments.


================
Comment at: lldb/include/lldb/Expression/REPL.h:115-120
+  virtual void
+  OnExpressionEvaluated(const ExecutionContext &exe_ctx, llvm::StringRef code,
+                        const EvaluateExpressionOptions &expr_options,
+                        lldb::ExpressionResults execution_results,
+                        const lldb::ValueObjectSP &result_valobj_sp,
+                        const Status &error) {}
----------------
Why not return a `Status` object instead of having the return type be `void`? Or instead of `Status` you could use `llvm::Error` so we are forced to check it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149719



More information about the lldb-commits mailing list