Searched refs:scope_exit (Results 1 – 5 of 5) sorted by relevance
25 template <typename Callable> class scope_exit {31 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function33 scope_exit(scope_exit &&Rhs) in scope_exit() function37 scope_exit(const scope_exit &) = delete;38 scope_exit &operator=(scope_exit &&) = delete;39 scope_exit &operator=(const scope_exit &) = delete;43 ~scope_exit() { in ~scope_exit()57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>59 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
238 struct scope_exit { struct240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {} in scope_exit() argument241 ~scope_exit() { if (f_) f_(); } in ~scope_exit() argument252 scope_exit reset_dont_write_bytecode([&]() { in __anon194191710402()265 scope_exit delete_module_file([&]() { in __anon194191710502()
783 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()790 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()
392 auto scope_exit = llvm::make_scope_exit([&] { in runPipeline() local