diff options
author | bulatman <bulatman@yandex-team.com> | 2023-05-04 10:28:45 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2023-05-04 10:28:45 +0300 |
commit | 6bccf8a6c51dfc4e563317584ee71ea0637c452a (patch) | |
tree | fd2db9ebc1482d68aacfd1353bfcb8d6243f56a4 | |
parent | 5a38c255b846d4bdaa221ca12c63d43f98033416 (diff) | |
download | ydb-6bccf8a6c51dfc4e563317584ee71ea0637c452a.tar.gz |
Remove using of extra semicolons in util
-rw-r--r-- | util/datetime/systime.cpp | 2 | ||||
-rw-r--r-- | util/generic/size_literals.h | 2 | ||||
-rw-r--r-- | util/generic/typetraits.h | 2 | ||||
-rw-r--r-- | util/generic/va_args.cpp | 6 | ||||
-rw-r--r-- | util/generic/ymath.h | 2 | ||||
-rw-r--r-- | util/random/lcg_engine.h | 2 | ||||
-rw-r--r-- | util/stream/output.h | 2 | ||||
-rw-r--r-- | util/system/compiler.h | 2 | ||||
-rw-r--r-- | util/system/fs.h | 2 | ||||
-rw-r--r-- | util/system/sanitizers.h | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/util/datetime/systime.cpp b/util/datetime/systime.cpp index 149d715e09d..aa935b7cf57 100644 --- a/util/datetime/systime.cpp +++ b/util/datetime/systime.cpp @@ -161,7 +161,7 @@ namespace { for (int year = UNIX_TIME_BASE_YEAR + 1; year < UNIX_TIME_BASE_YEAR + TableSize; ++year) { DaysSinceEpoch[year - UNIX_TIME_BASE_YEAR] = DaysSinceEpoch[year - UNIX_TIME_BASE_YEAR - 1] + YearSize(year); } - }; + } // lookup year by days since epoch, decrement day counter to the corresponding amount of days. // The method returns the last year in the table, if year is too big diff --git a/util/generic/size_literals.h b/util/generic/size_literals.h index 0b78b186872..ba46e4cebe4 100644 --- a/util/generic/size_literals.h +++ b/util/generic/size_literals.h @@ -37,7 +37,7 @@ namespace NPrivate { return value <= static_cast<ui64>(std::numeric_limits<i64>::max()) ? static_cast<i64>(value) : ythrow yexception() << "The resulting value " << value << " does not fit into the i64 type"; - }; + } } constexpr i64 operator"" _KBs(const unsigned long long value) noexcept { diff --git a/util/generic/typetraits.h b/util/generic/typetraits.h index 6542d736215..b877f4ef990 100644 --- a/util/generic/typetraits.h +++ b/util/generic/typetraits.h @@ -197,7 +197,7 @@ class TTypeTraits<void>: public TTypeTraitsBase<void> {}; template <class T, class = void> \ struct THas##name: std::false_type {}; \ template <class T> \ - struct THas##name<T, ::TVoidT<typename T::subtype>>: std::true_type {}; + struct THas##name<T, ::TVoidT<typename T::subtype>>: std::true_type {} #define Y_HAS_SUBTYPE_IMPL_1(name) Y_HAS_SUBTYPE_IMPL_2(name, name) diff --git a/util/generic/va_args.cpp b/util/generic/va_args.cpp index 2266d05a0dd..c8d74e98de2 100644 --- a/util/generic/va_args.cpp +++ b/util/generic/va_args.cpp @@ -2,14 +2,14 @@ // Test that it compiles #define __DUMMY__(x) -Y_MAP_ARGS(__DUMMY__, 1, 2, 3); +Y_MAP_ARGS(__DUMMY__, 1, 2, 3) #define __DUMMY_LAST__(x) -Y_MAP_ARGS_WITH_LAST(__DUMMY__, __DUMMY_LAST__, 1, 2, 3); +Y_MAP_ARGS_WITH_LAST(__DUMMY__, __DUMMY_LAST__, 1, 2, 3) #undef __DUMMY_LAST__ #undef __DUMMY__ #define __MULTI_DUMMY__(x, y) #define __MULTI_DUMMY_PROXY__(x) __MULTI_DUMMY__ x -Y_MAP_ARGS(__MULTI_DUMMY_PROXY__, (1, 2), (3, 4)); +Y_MAP_ARGS(__MULTI_DUMMY_PROXY__, (1, 2), (3, 4)) #undef __MULTI_DUMMY_PROXY__ #undef __MULTI_DUMMY__ diff --git a/util/generic/ymath.h b/util/generic/ymath.h index 9ff9ae2abe2..4239143a664 100644 --- a/util/generic/ymath.h +++ b/util/generic/ymath.h @@ -145,7 +145,7 @@ T Power(T x, Int n) { n >>= 1; } return result; -}; +} /** * Compares two floating point values and returns true if they are considered equal. diff --git a/util/random/lcg_engine.h b/util/random/lcg_engine.h index 08cc93c8457..4347b1a5ed8 100644 --- a/util/random/lcg_engine.h +++ b/util/random/lcg_engine.h @@ -9,7 +9,7 @@ namespace NPrivate { template <typename T> T LcgAdvance(T seed, T lcgBase, T lcgAddend, T delta) noexcept; -}; +} template <typename T, T A, T C> struct TFastLcgIterator { diff --git a/util/stream/output.h b/util/stream/output.h index 00eef50b958..08e67c3c6f0 100644 --- a/util/stream/output.h +++ b/util/stream/output.h @@ -60,7 +60,7 @@ public: IOutputStream& operator=(IOutputStream&&) noexcept { return *this; - }; + } /** * Writes into this stream. diff --git a/util/system/compiler.h b/util/system/compiler.h index 5542d462b70..29a97988521 100644 --- a/util/system/compiler.h +++ b/util/system/compiler.h @@ -206,7 +206,7 @@ template <class... Types> constexpr Y_FORCE_INLINE int Y_UNUSED(Types&&...) { return 0; -}; +} #endif /** diff --git a/util/system/fs.h b/util/system/fs.h index af336641022..4c1951b2502 100644 --- a/util/system/fs.h +++ b/util/system/fs.h @@ -21,7 +21,7 @@ namespace NFs { FP_NONSECRET_FILE = 0744, }; - Y_DECLARE_FLAGS(EFilePermissions, EFilePermission); + Y_DECLARE_FLAGS(EFilePermissions, EFilePermission) /// Remove a file or empty directory /// diff --git a/util/system/sanitizers.h b/util/system/sanitizers.h index 3ff42ca15e2..f0d31244966 100644 --- a/util/system/sanitizers.h +++ b/util/system/sanitizers.h @@ -19,7 +19,7 @@ extern "C" { // sanitizers API void __tsan_release(void* a); #endif -}; // sanitizers API +} // sanitizers API namespace NSan { class TFiberContext { |