Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Third Party committed Nov 16, 2022
1 parent 07824bf commit 8807576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions include/llama/RecordRef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ namespace llama
// get<I>(t) and std::tuple_size<T> must be available
using std::get; // make sure a get<0>() can be found, so the compiler can compile the trait
template<typename T>
inline constexpr auto isTupleLike<T, std::void_t<decltype(get<0>(std::declval<T>())), std::tuple_size<T>>>
= true;
inline constexpr auto
isTupleLike<T, std::void_t<decltype(get<0>(std::declval<T>())), std::tuple_size<T>>> = true;

template<typename... Ts>
inline constexpr auto dependentFalse = false;
Expand Down Expand Up @@ -320,8 +320,7 @@ namespace llama

template<typename T, typename... Args>
inline constexpr auto
isDirectListInitializableImpl<T, std::void_t<decltype(T{std::declval<Args>()...})>, Args...>
= true;
isDirectListInitializableImpl<T, std::void_t<decltype(T{std::declval<Args>()...})>, Args...> = true;

template<typename T, typename... Args>
inline constexpr auto isDirectListInitializable = isDirectListInitializableImpl<T, void, Args...>;
Expand All @@ -330,8 +329,8 @@ namespace llama
inline constexpr auto isDirectListInitializableFromTuple = false;

template<typename T, template<typename...> typename Tuple, typename... Args>
inline constexpr auto isDirectListInitializableFromTuple<T, Tuple<Args...>>
= isDirectListInitializable<T, Args...>;
inline constexpr auto
isDirectListInitializableFromTuple<T, Tuple<Args...>> = isDirectListInitializable<T, Args...>;

template<typename T, typename Simd, typename RecordCoord>
LLAMA_FN_HOST_ACC_INLINE void loadSimdRecord(const T& srcRef, Simd& dstSimd, RecordCoord rc);
Expand Down
3 changes: 1 addition & 2 deletions include/llama/Tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ namespace llama
std::enable_if_t<
sizeof...(RestElements) == sizeof...(Ts)
&& std::is_constructible_v<FirstElement, T> && (std::is_constructible_v<RestElements, Ts> && ...),
int>
= 0>
int> = 0>
LLAMA_FN_HOST_ACC_INLINE constexpr explicit Tuple(T&& firstArg, Ts&&... restArgs)
: Leaf{static_cast<FirstElement>(std::forward<T>(firstArg))}
, RestTuple(std::forward<Ts>(restArgs)...)
Expand Down

0 comments on commit 8807576

Please sign in to comment.