clang-format

This commit is contained in:
Guillaume Meunier
2024-03-30 17:00:34 +01:00
parent bb660cfb3f
commit 9cceaac648
122 changed files with 2904 additions and 2783 deletions
+9 -9
View File
@@ -19,22 +19,23 @@
#pragma once
#include <bit>
#include <boost/pfr/core.hpp>
#include <type_traits>
#include <vulkan/vulkan.hpp>
#include <bit>
namespace utils
{
template<typename T>
struct is_vk_flags : std::false_type {};
template <typename T>
struct is_vk_flags : std::false_type
{};
template<typename T>
struct is_vk_flags<vk::Flags<T>> : std::true_type {};
template <typename T>
struct is_vk_flags<vk::Flags<T>> : std::true_type
{};
template<typename T>
template <typename T>
struct magic_hash
{
std::size_t operator()(const T & info) const noexcept
@@ -42,7 +43,6 @@ struct magic_hash
size_t h = 0;
boost::pfr::for_each_field(info, [&](const auto & member) {
using U = std::remove_cvref_t<decltype(member)>;
if constexpr (is_vk_flags<U>::value)
@@ -61,4 +61,4 @@ struct magic_hash
return h;
}
};
}
} // namespace utils