Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DScopeExit.h26 template <typename Callable> class scope_exit {
32 explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {} in scope_exit() function
34 scope_exit(scope_exit &&Rhs) in scope_exit() function
38 scope_exit(const scope_exit &) = delete;
39 scope_exit &operator=(scope_exit &&) = delete;
40 scope_exit &operator=(const scope_exit &) = delete;
44 ~scope_exit() { in ~scope_exit()
58 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
60 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
/llvm-project-15.0.7/lldb/source/Plugins/Platform/POSIX/
H A DPlatformPOSIX.cpp763 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()
770 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> in DoLoadImage()
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Doperations.cpp1401 struct scope_exit { struct
1402 explicit scope_exit(Cleanup const& cleanup) in scope_exit() argument
1406 ~scope_exit() { cleanup_(); } in ~scope_exit() argument
1427 scope_exit close_stream([=] { ::closedir(stream); }); in remove_all_impl()
/llvm-project-15.0.7/lldb/source/Plugins/Platform/Windows/
H A DPlatformWindows.cpp228 llvm::Optional<llvm::detail::scope_exit<std::function<void()>>> paths_cleanup; in DoLoadImage()