LLVM 22.0.0git
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 <utility>

Go to the source code of this file.

Classes

class  llvm::scope_exit< Callable >

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

template<typename Callable>
 llvm::scope_exit (Callable) -> scope_exit< Callable >
template<typename Callable>
 llvm::LLVM_DEPRECATED ("Prefer calling the constructor of llvm::scope_exit directly.", "scope_exit") auto 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.