[Lldb-commits] [PATCH] D60178: [Reproducers] Capture return values of functions returning by ptr/ref

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 2 21:35:58 PDT 2019


JDevlieghere marked 2 inline comments as done.
JDevlieghere added inline comments.
Herald added a subscriber: dexonsmith.


================
Comment at: lldb/include/lldb/Utility/ReproducerInstrumentation.h:679
+  template <typename Result> const Result &RecordResult(const Result &r) {
+    UpdateBoundary();
+    if (ShouldCapture()) {
----------------
Let's cast this or hide it behind a macro to prevent code duplication. 


================
Comment at: lldb/unittests/Utility/ReproducerInstrumentationTest.cpp:552
+#if 0
+    InstrumentedFoo* foo_ptr = bar.GetInstrumentedFooPtr();
+#endif
----------------
Oops, this should be removed.


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D60178





More information about the lldb-commits mailing list