Home
last modified time | relevance | path

Searched refs:scope_exit (Results 1 – 5 of 5) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DScopeExit.h25 template <typename Callable> class scope_exit {
31 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function
33 scope_exit(scope_exit &&Rhs) in scope_exit() function
37 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()
/external/llvm-project/llvm/include/llvm/ADT/
DScopeExit.h25 template <typename Callable> class scope_exit {
31 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function
33 scope_exit(scope_exit &&Rhs) in scope_exit() function
37 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()
/external/python/pybind11/tests/test_embed/
Dtest_interpreter.cpp238 struct scope_exit { struct
240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {} in scope_exit() argument
241 ~scope_exit() { if (f_) f_(); } in ~scope_exit() argument
252 scope_exit reset_dont_write_bytecode([&]() { in __anon194191710402()
265 scope_exit delete_module_file([&]() { in __anon194191710502()
/external/llvm-project/lldb/source/Plugins/Platform/POSIX/
DPlatformPOSIX.cpp783 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()
790 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()
/external/llvm-project/mlir/lib/Pass/
DPass.cpp392 auto scope_exit = llvm::make_scope_exit([&] { in runPipeline() local