[Lldb-commits] [PATCH] D43662: [Utility] Simplify and generalize the CleanUp helper, NFC

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 22 17:35:05 PST 2018


zturner added a comment.

Couldn't we just add a creator helper so that you can say:

  auto cleanup = makeCleanupRAII([&] {
      process_sp->Destroy(/*force_kill=*/false);
      debugger.StopEventHandlerThread();
    });


https://reviews.llvm.org/D43662





More information about the lldb-commits mailing list