mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Renamed helpers.h to scope_exit.h
This commit is contained in:
parent
6c4f421ead
commit
def709c59b
2 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,6 @@
|
|||
#include "gen/dvalue.h"
|
||||
#include "gen/funcgenstate.h"
|
||||
#include "gen/function-inlining.h"
|
||||
#include "gen/helpers.h"
|
||||
#include "gen/inlineir.h"
|
||||
#include "gen/irstate.h"
|
||||
#include "gen/linkage.h"
|
||||
|
@ -38,6 +37,7 @@
|
|||
#include "gen/pgo.h"
|
||||
#include "gen/pragma.h"
|
||||
#include "gen/runtime.h"
|
||||
#include "gen/scope_exit.h"
|
||||
#include "gen/tollvm.h"
|
||||
#include "gen/uda.h"
|
||||
#include "ir/irfunction.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===-- gen/helpers.h - General helpers -------------------------*- C++ -*-===//
|
||||
//===-- gen/scope_exit.h - scope exit helper --------------------*- C++ -*-===//
|
||||
//
|
||||
// LDC - the LLVM D compiler
|
||||
//
|
||||
|
@ -7,12 +7,12 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// General helper constructs.
|
||||
// SCOPE_EXIT helper construct.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef HELPERS_H
|
||||
#define HELPERS_H
|
||||
#ifndef SCOPE_EXIT_H
|
||||
#define SCOPE_EXIT_H
|
||||
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
|
@ -81,4 +81,4 @@ inline ScopeExit<typename std::decay<Func>::type> operator<<(const ScopeExitTag&
|
|||
|
||||
#define SCOPE_EXIT auto LDC_UNNAME_VAR(scope_exit) = details::ScopeExitTag{} << [&]()
|
||||
|
||||
#endif // HELPERS_H
|
||||
#endif // SCOPE_EXIT_H
|
Loading…
Add table
Add a link
Reference in a new issue