From 9cf98029042b1e7d06031ff78031d7709ba95f8b Mon Sep 17 00:00:00 2001 From: AlexanderSinn Date: Tue, 23 Jan 2024 21:16:43 +0100 Subject: [PATCH] add space at function definition --- Src/Base/AMReX_Reduce.H | 2 +- Src/Base/AMReX_Tuple.H | 2 +- Src/Base/AMReX_TypeList.H | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Src/Base/AMReX_Reduce.H b/Src/Base/AMReX_Reduce.H index 81fe1871524..85710e7fc01 100644 --- a/Src/Base/AMReX_Reduce.H +++ b/Src/Base/AMReX_Reduce.H @@ -1282,7 +1282,7 @@ bool AnyOf (Box const& box, P&&pred) template AMREX_GPU_HOST_DEVICE constexpr GpuTuple -IdentityTuple(GpuTuple, ReduceOps) noexcept +IdentityTuple (GpuTuple, ReduceOps) noexcept { GpuTuple r{}; Reduce::detail::for_each_init<0, decltype(r), Ps...>(r); diff --git a/Src/Base/AMReX_Tuple.H b/Src/Base/AMReX_Tuple.H index 81fc2c1508f..93b3136aa6d 100644 --- a/Src/Base/AMReX_Tuple.H +++ b/Src/Base/AMReX_Tuple.H @@ -387,7 +387,7 @@ ForwardAsTuple (Ts&&... args) noexcept template AMREX_GPU_HOST_DEVICE constexpr GpuTuple -MakeZeroTuple(GpuTuple) noexcept +MakeZeroTuple (GpuTuple) noexcept { return GpuTuple(static_cast(0)...); } diff --git a/Src/Base/AMReX_TypeList.H b/Src/Base/AMReX_TypeList.H index 656a2048f0c..8aab1184141 100644 --- a/Src/Base/AMReX_TypeList.H +++ b/Src/Base/AMReX_TypeList.H @@ -154,7 +154,7 @@ constexpr auto CartesianProduct (Ls...) { namespace detail { // return TypeList by using the fast power algorithm template - constexpr auto SingleTypeMultiplier_impl() { + constexpr auto SingleTypeMultiplier_impl () { if constexpr (N == 0) { return TypeList<>{}; } else if constexpr (N == 1) { @@ -169,19 +169,19 @@ namespace detail { // overload of SingleTypeMultiplier for multiple types: // convert T[N] to T, T, T, T, ... (N times with N >= 1) template - constexpr auto SingleTypeMultiplier(const T (&)[N]) { + constexpr auto SingleTypeMultiplier (const T (&)[N]) { return SingleTypeMultiplier_impl(); } // overload of SingleTypeMultiplier for one regular type template - constexpr auto SingleTypeMultiplier(T) { + constexpr auto SingleTypeMultiplier (T) { return TypeList{}; } // apply the types of the input TypeList as template arguments to TParam template