LLVM 19.0.0git
Classes | Namespaces | Functions
ScopeExit.h File Reference

This file defines the make_scope_exit function, which executes user-defined cleanup logic at scope exit. More...

#include "llvm/Support/Compiler.h"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  llvm::detail::scope_exit< Callable >
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as llvm:all_of, llvm::none_of, etc.
 

Functions

template<typename Callable >
detail::scope_exit< std::decay_t< Callable > > llvm::make_scope_exit (Callable &&F)
 

Detailed Description

This file defines the make_scope_exit function, which executes user-defined cleanup logic at scope exit.

Definition in file ScopeExit.h.