diff options
author | bulatman <bulatman@yandex-team.com> | 2023-06-24 00:07:56 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2023-06-24 00:07:56 +0300 |
commit | c203a40b3ad69fa879519c38e45c641cb2eaee84 (patch) | |
tree | ca5d8d612fdc0348c9135386b1dfc142f9f5689e /util/generic/flags.h | |
parent | 234fdc45c2d3c6de987f600acc75563093420730 (diff) | |
download | ydb-c203a40b3ad69fa879519c38e45c641cb2eaee84.tar.gz |
Require semicolon after Y_DECLARE*_FLAGS
Diffstat (limited to 'util/generic/flags.h')
-rw-r--r-- | util/generic/flags.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/util/generic/flags.h b/util/generic/flags.h index a1f5921d42..2e8d6b93d0 100644 --- a/util/generic/flags.h +++ b/util/generic/flags.h @@ -23,12 +23,12 @@ namespace NPrivate { * Vertical = 1, * Horizontal = 2 * }; - * Y_DECLARE_FLAGS(EOrientations, EOrientation) + * Y_DECLARE_FLAGS(EOrientations, EOrientation); * * // ... * }; * - * Y_DECLARE_OPERATORS_FOR_FLAGS(TAligner::EOrientations) + * Y_DECLARE_OPERATORS_FOR_FLAGS(TAligner::EOrientations); * @endcode */ template <class Enum> @@ -224,7 +224,7 @@ struct THash<TFlags<Enum>> { * @param ENUM Name of the base enum type to use. */ #define Y_DECLARE_FLAGS(FLAGS, ENUM) \ - using FLAGS = TFlags<ENUM>; + using FLAGS = TFlags<ENUM> /** * This macro declares global operator functions for enum base of `FLAGS` type. @@ -241,4 +241,5 @@ struct THash<TFlags<Enum>> { Y_DECLARE_UNUSED \ constexpr inline FLAGS operator~(FLAGS::TEnum value) { \ return ~FLAGS(value); \ - } + } \ + Y_SEMICOLON_GUARD |