diff options
author | bulatman <bulatman@yandex-team.com> | 2023-05-16 12:04:37 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2023-05-16 12:04:37 +0300 |
commit | 6d5e6dcc4c61046cc83599d4789a92f7bdc4b223 (patch) | |
tree | cb12a3182f117fd8d0a65e285bde357fe22157ec /library/cpp | |
parent | b0758245d516b1c90e1af1aa867d7886d46693a6 (diff) | |
download | ydb-6d5e6dcc4c61046cc83599d4789a92f7bdc4b223.tar.gz |
Remove extra semicolons in yt
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/yt/memory/range.h | 2 | ||||
-rw-r--r-- | library/cpp/yt/memory/shared_range.h | 2 | ||||
-rw-r--r-- | library/cpp/yt/misc/enum.h | 16 | ||||
-rw-r--r-- | library/cpp/yt/string/unittests/enum_ut.cpp | 2 |
4 files changed, 14 insertions, 8 deletions
diff --git a/library/cpp/yt/memory/range.h b/library/cpp/yt/memory/range.h index 6c71aa9496..ac1f138b30 100644 --- a/library/cpp/yt/memory/range.h +++ b/library/cpp/yt/memory/range.h @@ -288,7 +288,7 @@ TRange<U> ReinterpretCastRange(TRange<T> range) { static_assert(sizeof(T) == sizeof(U), "T and U must have equal sizes."); return TRange<U>(reinterpret_cast<const U*>(range.Begin()), range.Size()); -}; +} //////////////////////////////////////////////////////////////////////////////// diff --git a/library/cpp/yt/memory/shared_range.h b/library/cpp/yt/memory/shared_range.h index 780a44ae8b..967a7cca26 100644 --- a/library/cpp/yt/memory/shared_range.h +++ b/library/cpp/yt/memory/shared_range.h @@ -212,7 +212,7 @@ TSharedRange<U> ReinterpretCastRange(const TSharedRange<T>& range) { static_assert(sizeof(T) == sizeof(U), "T and U must have equal sizes."); return TSharedRange<U>(reinterpret_cast<const U*>(range.Begin()), range.Size(), range.GetHolder()); -}; +} //////////////////////////////////////////////////////////////////////////////// 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) \ diff --git a/library/cpp/yt/string/unittests/enum_ut.cpp b/library/cpp/yt/string/unittests/enum_ut.cpp index b8076fd8ee..fed6d6eb21 100644 --- a/library/cpp/yt/string/unittests/enum_ut.cpp +++ b/library/cpp/yt/string/unittests/enum_ut.cpp @@ -27,7 +27,7 @@ DEFINE_BIT_ENUM(ELangs, ((Rust) (0x04)) ((Python) (0x08)) ((JavaScript) (0x10)) -) +); TEST(TFormatTest, Enum) { |