Browse Source

FixNamespaceComments in /util

FixNamespaceComments in /util
bb9152570d7c258798644ead5a59f604de05ef3b
dmasloff 6 months ago
parent
commit
74184a40c1

+ 1 - 1
util/charset/unicode_table.h

@@ -120,4 +120,4 @@ namespace NUnicodeTable {
     };
 
     const size_t UNICODE_TABLE_SHIFT = 5;
-}
+} // namespace NUnicodeTable

+ 2 - 2
util/charset/unidata.h

@@ -126,7 +126,7 @@ namespace NUnicode {
         inline bool IsBidi(wchar32 ch, ui32 type) {
             return ((NUnicode::NPrivate::CharInfo(ch) >> BIDI_OFFSET) & 15) == type;
         }
-    }
+    } // namespace NPrivate
 
     inline size_t UnicodeInstancesLimit() {
         return NPrivate::UnidataTable().Size();
@@ -142,7 +142,7 @@ namespace NUnicode {
     inline bool CharHasType(wchar32 ch, ui64 type_bits) {
         return (SHIFT(NUnicode::CharType(ch)) & type_bits) != 0;
     }
-}
+} // namespace NUnicode
 
 // all usefull properties
 

+ 1 - 1
util/charset/utf8_ut.cpp

@@ -123,4 +123,4 @@ Y_UNIT_TEST_SUITE(TUtfUtilTest) {
         wtextScalar.remove(wtextSSE.size());
         UNIT_ASSERT(wtextScalar == wtextSSE);
     }
-}
+} // Y_UNIT_TEST_SUITE(TUtfUtilTest)

+ 1 - 1
util/charset/wide.cpp

@@ -29,7 +29,7 @@ namespace {
                     return 1;
         }
     }
-}
+} // namespace
 
 void Collapse(TUtf16String& w) {
     CollapseImpl(w, w, 0, IsWhitespace);

+ 3 - 3
util/charset/wide.h

@@ -61,7 +61,7 @@ namespace NDetail {
     template <class T>
     inline void WriteSurrogatePair(wchar32 s, T& dest) noexcept;
 
-}
+} // namespace NDetail
 
 inline wchar16* SkipSymbol(wchar16* begin, const wchar16* end) noexcept {
     return begin + W16SymbolSize(begin, end);
@@ -333,7 +333,7 @@ namespace NDetail {
     void UTF8ToWideImplSSE41(const unsigned char*& cur, const unsigned char* last, wchar16*& dest) noexcept;
 
     void UTF8ToWideImplSSE41(const unsigned char*& cur, const unsigned char* last, wchar32*& dest) noexcept;
-}
+} // namespace NDetail
 
 //! @return len if robust and position where encoding stopped if not
 template <bool robust, typename TCharType>
@@ -639,7 +639,7 @@ namespace NDetail {
     }
 #endif // _sse2_
 
-}
+} // namespace NDetail
 
 //! returns @c true if character sequence has no symbols with value greater than 0x7F
 template <typename TChar>

+ 2 - 2
util/charset/wide_sse41.cpp

@@ -8,7 +8,7 @@ namespace NDetail {
     }
     void UTF8ToWideImplSSE41(const unsigned char*&, const unsigned char*, wchar32*&) noexcept {
     }
-}
+} // namespace NDetail
 
 #else
 
@@ -242,6 +242,6 @@ namespace NDetail {
         // The rest will be handled sequencially.
         // Possible improvement: go back to the vectorized processing after the error or the 4 byte sequence
     }
-}
+} // namespace NDetail
 
 #endif

+ 1 - 1
util/charset/wide_ut.cpp

@@ -160,7 +160,7 @@ namespace {
         UNIT_ASSERT(n == len);
         UNIT_ASSERT(r == result);
     }
-}
+} // namespace
 
 class TConversionTest: public TTestBase {
 private:

+ 1 - 1
util/datetime/base.cpp

@@ -130,7 +130,7 @@ namespace {
             os << Pad<2>(utcOffsetInMinutes % 60);
         }
     }
-}
+} // namespace
 
 template <>
 void Out<TDuration>(IOutputStream& os, TTypeTraits<TDuration>::TFuncParam duration) {

+ 3 - 3
util/datetime/base.h

@@ -190,7 +190,7 @@ namespace NDateTimeHelpers {
     struct TPrecisionHelper<double> {
         using THighPrecision = double;
     };
-}
+} // namespace NDateTimeHelpers
 
 class TDuration: public TTimeBase<TDuration> {
     using TBase = TTimeBase<TDuration>;
@@ -576,7 +576,7 @@ namespace NPrivate {
         {
         }
     };
-}
+} // namespace NPrivate
 
 /** @name Helpers for printing local times to `IOutputStream`s.
  *        The FormatLocal* functions create an opaque object that, when written to
@@ -645,7 +645,7 @@ namespace NDateTimeHelpers {
 
         return a < b ? 0 : a - b;
     }
-}
+} // namespace NDateTimeHelpers
 
 constexpr TDuration operator-(const TInstant& l, const TInstant& r) noexcept {
     return TDuration::FromValue(::NDateTimeHelpers::DiffWithSaturation(l.GetValue(), r.GetValue()));

+ 4 - 4
util/datetime/base_ut.cpp

@@ -45,7 +45,7 @@ namespace {
             *buf = '\0';
         }
     }
-}
+} // namespace
 
 Y_UNIT_TEST_SUITE(TestSprintDate) {
     Y_UNIT_TEST(Year9999) {
@@ -148,7 +148,7 @@ Y_UNIT_TEST_SUITE(TestSprintDate) {
 
         UNIT_ASSERT_VALUES_EQUAL(expectedYear, YearToString(timestamp));
     }
-}
+} // Y_UNIT_TEST_SUITE(TestSprintDate)
 
 Y_UNIT_TEST_SUITE(TDateTimeTest) {
     Y_UNIT_TEST(Test8601) {
@@ -336,7 +336,7 @@ Y_UNIT_TEST_SUITE(TDateTimeTest) {
             UNIT_ASSERT(CompareTMFull(ptm0, ptm1));
         }
     }
-}
+} // Y_UNIT_TEST_SUITE(TDateTimeTest)
 
 Y_UNIT_TEST_SUITE(DateTimeTest) {
     Y_UNIT_TEST(TestDurationFromFloat) {
@@ -652,4 +652,4 @@ Y_UNIT_TEST_SUITE(DateTimeTest) {
         static_assert(TDuration::Zero() + 1s == 1s);
         static_assert(TInstant::Seconds(1) + 1s == TInstant::Seconds(2));
     }
-}
+} // Y_UNIT_TEST_SUITE(DateTimeTest)

Some files were not shown because too many files changed in this diff