Skip to content

Commit

Permalink
Run clang-format-14
Browse files Browse the repository at this point in the history
  • Loading branch information
Third Party authored and bernhardmgruber committed Sep 1, 2022
1 parent 789b632 commit d805854
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions include/llama/RecordRef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ namespace llama
}

template<typename RecordRef, typename T, std::size_t N, std::size_t... Is>
LLAMA_FN_HOST_ACC_INLINE auto asTupleImplArr(RecordRef&& vd, T(&&)[N], std::index_sequence<Is...>)
LLAMA_FN_HOST_ACC_INLINE auto asTupleImplArr(RecordRef&& vd, T (&&)[N], std::index_sequence<Is...>)
{
return std::make_tuple(asTupleImpl(vd(RecordCoord<Is>{}), T{})...);
}

template<typename RecordRef, typename T, std::size_t N>
LLAMA_FN_HOST_ACC_INLINE auto asTupleImpl(RecordRef&& vd, T(&&a)[N])
LLAMA_FN_HOST_ACC_INLINE auto asTupleImpl(RecordRef&& vd, T (&&a)[N])
{
return asTupleImplArr(std::forward<RecordRef>(vd), std::move(a), std::make_index_sequence<N>{});
}
Expand All @@ -228,13 +228,13 @@ namespace llama
}

template<typename RecordRef, typename T, std::size_t N, std::size_t... Is>
LLAMA_FN_HOST_ACC_INLINE auto asFlatTupleImplArr(RecordRef&& vd, T(&&)[N], std::index_sequence<Is...>)
LLAMA_FN_HOST_ACC_INLINE auto asFlatTupleImplArr(RecordRef&& vd, T (&&)[N], std::index_sequence<Is...>)
{
return std::tuple_cat(asFlatTupleImpl(vd(RecordCoord<Is>{}), T{})...);
}

template<typename RecordRef, typename T, std::size_t N>
LLAMA_FN_HOST_ACC_INLINE auto asFlatTupleImpl(RecordRef&& vd, T(&&a)[N])
LLAMA_FN_HOST_ACC_INLINE auto asFlatTupleImpl(RecordRef&& vd, T (&&a)[N])
{
return asFlatTupleImplArr(std::forward<RecordRef>(vd), std::move(a), std::make_index_sequence<N>{});
}
Expand Down
10 changes: 2 additions & 8 deletions include/llama/mapping/BitPackedIntSoA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,10 @@ namespace llama::mapping
)
: VHBits{vhBits}
, ptr{ptr}
, bitOffset
{
bitOffset
}
, bitOffset{bitOffset}

#ifndef NDEBUG
, endPtr
{
endPtr
}
, endPtr{endPtr}
#endif
{
}
Expand Down

0 comments on commit d805854

Please sign in to comment.