Просмотр исходного кода

Remove using of extra semicolons in util

bulatman 1 год назад
Родитель
Сommit
6bccf8a6c5

+ 1 - 1
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

+ 1 - 1
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 {

+ 1 - 1
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)
 

+ 3 - 3
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__

+ 1 - 1
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.

+ 1 - 1
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 {

+ 1 - 1
util/stream/output.h

@@ -60,7 +60,7 @@ public:
 
     IOutputStream& operator=(IOutputStream&&) noexcept {
         return *this;
-    };
+    }
 
     /**
      * Writes into this stream.

+ 1 - 1
util/system/compiler.h

@@ -206,7 +206,7 @@
 template <class... Types>
 constexpr Y_FORCE_INLINE int Y_UNUSED(Types&&...) {
     return 0;
-};
+}
 #endif
 
 /**

+ 1 - 1
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
     ///

+ 1 - 1
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 {