mirror of https://github.com/AxioDL/metaforce.git
TypedVariant: Apply formatting to macros
Applies clang-format to the macros to prevent the changes from being placed into the following change.
This commit is contained in:
parent
35988aff00
commit
8814ecbc4c
|
@ -205,7 +205,8 @@ private:
|
||||||
#define AT_SPECIALIZE_TYPED_VARIANT_BIGDNA(...) \
|
#define AT_SPECIALIZE_TYPED_VARIANT_BIGDNA(...) \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Read>(typename Read::StreamT & r) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Read>( \
|
||||||
|
typename Read::StreamT & r) { \
|
||||||
EnumType variant_type = {}; \
|
EnumType variant_type = {}; \
|
||||||
Do<athena::io::DNA<athena::Big>::Read>(athena::io::PropId("variant_type"), variant_type, r); \
|
Do<athena::io::DNA<athena::Big>::Read>(athena::io::PropId("variant_type"), variant_type, r); \
|
||||||
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
||||||
|
@ -214,7 +215,8 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
||||||
\
|
\
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Write>(typename Write::StreamT & w) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Write>( \
|
||||||
|
typename Write::StreamT & w) { \
|
||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
|
@ -225,7 +227,8 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
||||||
\
|
\
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::BinarySize>(typename BinarySize::StreamT & sz) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::BinarySize>( \
|
||||||
|
typename BinarySize::StreamT & sz) { \
|
||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
|
@ -242,7 +245,8 @@ inline const char* hecl::TypedVariantBigDNA<__VA_ARGS__>::DNAType() { \
|
||||||
AT_SPECIALIZE_TYPED_VARIANT_BIGDNA(__VA_ARGS__) \
|
AT_SPECIALIZE_TYPED_VARIANT_BIGDNA(__VA_ARGS__) \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::ReadYaml>(typename ReadYaml::StreamT & r) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::ReadYaml>( \
|
||||||
|
typename ReadYaml::StreamT & r) { \
|
||||||
EnumType variant_type = {}; \
|
EnumType variant_type = {}; \
|
||||||
Do<athena::io::DNA<athena::Big>::ReadYaml>(athena::io::PropId("variant_type"), variant_type, r); \
|
Do<athena::io::DNA<athena::Big>::ReadYaml>(athena::io::PropId("variant_type"), variant_type, r); \
|
||||||
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
||||||
|
@ -251,7 +255,8 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
||||||
\
|
\
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::WriteYaml>(typename WriteYaml::StreamT & w) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::WriteYaml>( \
|
||||||
|
typename WriteYaml::StreamT & w) { \
|
||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
|
|
Loading…
Reference in New Issue