[Lldb-commits] [PATCH] D93649: [lldb/Lua] add support for Lua function breakpoint

Pedro Tammela via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 18 11:20:17 PST 2021


tammela added inline comments.


================
Comment at: lldb/bindings/lua/lua-wrapper.swig:25-29
+   auto extra_args = [&]() -> llvm::Optional<lldb::SBStructuredData> {
+      if (extra_args_impl == nullptr)
+         return {};
+      return lldb::SBStructuredData(extra_args_impl);
+   } ();
----------------
JDevlieghere wrote:
> I don't think you need the lambda. I used `unique_ptr` but `llvm:Optional` would work as well. 
`{}` is not valid on the ternary operator, but I think the version suits your suggestion.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93649



More information about the lldb-commits mailing list