dblaikie added inline comments.
Comment at: clang/lib/Frontend/FrontendAction.cpp:553-565
+ bool HasBegunSourceFile = false;
+ std::function Operation = [&]() {
+return BeginSourceFileImpl(CI, RealInput, HasBegunSourceFile);
+ };
+ std::function Cleanup = [&]() {
+if
beanz created this revision.
beanz added reviewers: lhames, dblaikie.
Herald added subscribers: dexonsmith, mgorny.
beanz requested review of this revision.
Herald added projects: clang, LLVM.
This patch adds a new `doWithCleanup` abstraction to LLVM that works
with `llvm::Error`, `int`, `bool`, a