[pkg-d-commits] [ldc] 25/149: Renamed helpers.h to scope_exit.h

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.2.0
in repository ldc.

commit def709c59b0f5fc47d5db8ddc0c5fc579870f560
Author: Ivan <ivan.butygin at gmail.com>
Date:   Fri Jan 6 12:17:50 2017 +0300

    Renamed helpers.h to scope_exit.h
---
 gen/functions.cpp               |  2 +-
 gen/{helpers.h => scope_exit.h} | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gen/functions.cpp b/gen/functions.cpp
index c87b5fd..f61cd07 100644
--- a/gen/functions.cpp
+++ b/gen/functions.cpp
@@ -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"
diff --git a/gen/helpers.h b/gen/scope_exit.h
similarity index 91%
rename from gen/helpers.h
rename to gen/scope_exit.h
index bae624a..263614f 100644
--- a/gen/helpers.h
+++ b/gen/scope_exit.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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list