aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/misc
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2023-05-16 12:04:37 +0300
committerbulatman <bulatman@yandex-team.com>2023-05-16 12:04:37 +0300
commit6d5e6dcc4c61046cc83599d4789a92f7bdc4b223 (patch)
treecb12a3182f117fd8d0a65e285bde357fe22157ec /library/cpp/yt/misc
parentb0758245d516b1c90e1af1aa867d7886d46693a6 (diff)
downloadydb-6d5e6dcc4c61046cc83599d4789a92f7bdc4b223.tar.gz
Remove extra semicolons in yt
Diffstat (limited to 'library/cpp/yt/misc')
-rw-r--r--library/cpp/yt/misc/enum.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/library/cpp/yt/misc/enum.h b/library/cpp/yt/misc/enum.h
index 773e1ac4ed..b6e19b9ef8 100644
--- a/library/cpp/yt/misc/enum.h
+++ b/library/cpp/yt/misc/enum.h
@@ -105,14 +105,16 @@ struct TEnumTraits<T, true>
ENUM__CLASS(enumType, underlyingType, seq) \
ENUM__BEGIN_TRAITS(enumType, underlyingType, false, false, seq) \
ENUM__VALIDATE_UNIQUE(enumType) \
- ENUM__END_TRAITS(enumType)
+ ENUM__END_TRAITS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with a specific underlying type.
//! Duplicate enumeration values are allowed.
#define DEFINE_AMBIGUOUS_ENUM_WITH_UNDERLYING_TYPE(enumType, underlyingType, seq) \
ENUM__CLASS(enumType, underlyingType, seq) \
ENUM__BEGIN_TRAITS(enumType, underlyingType, false, false, seq) \
- ENUM__END_TRAITS(enumType)
+ ENUM__END_TRAITS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with the default |int| underlying type.
#define DEFINE_ENUM(enumType, seq) \
@@ -129,7 +131,8 @@ struct TEnumTraits<T, true>
ENUM__BEGIN_TRAITS(enumType, underlyingType, true, false, seq) \
ENUM__VALIDATE_UNIQUE(enumType) \
ENUM__END_TRAITS(enumType) \
- ENUM__BITWISE_OPS(enumType)
+ ENUM__BITWISE_OPS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with a specific underlying type.
//! Duplicate enumeration values are allowed.
@@ -142,7 +145,8 @@ struct TEnumTraits<T, true>
ENUM__CLASS(enumType, underlyingType, seq) \
ENUM__BEGIN_TRAITS(enumType, underlyingType, true, false, seq) \
ENUM__END_TRAITS(enumType) \
- ENUM__BITWISE_OPS(enumType)
+ ENUM__BITWISE_OPS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with the default |unsigned int| underlying type.
/*!
@@ -163,13 +167,15 @@ struct TEnumTraits<T, true>
ENUM__BEGIN_TRAITS(enumType, underlyingType, false, true, seq) \
ENUM__VALIDATE_UNIQUE(enumType) \
ENUM__END_TRAITS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with a specific underlying type and IsStringSerializable attribute.
//! Duplicate enumeration values are allowed.
#define DEFINE_AMBIGUOUS_STRING_SERIALIZABLE_ENUM_WITH_UNDERLYING_TYPE(enumType, underlyingType, seq) \
ENUM__CLASS(enumType, underlyingType, seq) \
ENUM__BEGIN_TRAITS(enumType, underlyingType, false, true, seq) \
- ENUM__END_TRAITS(enumType)
+ ENUM__END_TRAITS(enumType) \
+ static_assert(true)
//! Defines a smart enumeration with the default |int| underlying type and IsStringSerializable attribute.
#define DEFINE_STRING_SERIALIZABLE_ENUM(enumType, seq) \