diff options
author | bulatman <bulatman@yandex-team.com> | 2023-06-10 13:55:11 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2023-06-10 13:55:11 +0300 |
commit | d570836295decdb827b4f95d75ebf2d8d9232b9b (patch) | |
tree | 859f3511dc3166e935b9c3438f6beee050816001 /library | |
parent | 91497eb27263e2feb35b53a90773e7207752a2ec (diff) | |
download | ydb-d570836295decdb827b4f95d75ebf2d8d9232b9b.tar.gz |
Remove extra semicolon (library)
Diffstat (limited to 'library')
55 files changed, 88 insertions, 99 deletions
diff --git a/library/cpp/actors/core/callstack.h b/library/cpp/actors/core/callstack.h index 176717d2ae..034d0becf1 100644 --- a/library/cpp/actors/core/callstack.h +++ b/library/cpp/actors/core/callstack.h @@ -49,9 +49,9 @@ namespace NActors { #else namespace NActors { - inline void EnableActorCallstack(){}; + inline void EnableActorCallstack(){} - inline void DisableActorCallstack(){}; + inline void DisableActorCallstack(){} } diff --git a/library/cpp/actors/core/executor_pool.h b/library/cpp/actors/core/executor_pool.h index f4def74077..5adcf4d0d5 100644 --- a/library/cpp/actors/core/executor_pool.h +++ b/library/cpp/actors/core/executor_pool.h @@ -115,7 +115,7 @@ namespace NActors { virtual ui32 GetThreadCount() const { return 1; - }; + } virtual void SetThreadCount(ui32 threads) { Y_UNUSED(threads); diff --git a/library/cpp/actors/core/harmonizer.cpp b/library/cpp/actors/core/harmonizer.cpp index a1838ee2b0..e729ffd08d 100644 --- a/library/cpp/actors/core/harmonizer.cpp +++ b/library/cpp/actors/core/harmonizer.cpp @@ -510,7 +510,7 @@ void THarmonizer::AddPool(IExecutorPool* pool, TSelfPingInfo *pingInfo) { } Pools.push_back(poolInfo); PriorityOrder.clear(); -}; +} void THarmonizer::Enable(bool enable) { TGuard<TSpinLock> guard(Lock); diff --git a/library/cpp/actors/core/log_metrics.h b/library/cpp/actors/core/log_metrics.h index 91fed3a4e4..5005b2b776 100644 --- a/library/cpp/actors/core/log_metrics.h +++ b/library/cpp/actors/core/log_metrics.h @@ -57,7 +57,7 @@ public: } void IncDroppedMsgs() override { DroppedMsgs_->Inc(); - }; + } void GetOutputHtml(IOutputStream& str) override { HTML(str) { @@ -122,7 +122,7 @@ public: } void IncDroppedMsgs() override { DroppedMsgs_->Inc(); - }; + } void GetOutputHtml(IOutputStream& str) override { HTML(str) { diff --git a/library/cpp/actors/core/log_settings.h b/library/cpp/actors/core/log_settings.h index 595782c651..bb7eabfa5f 100644 --- a/library/cpp/actors/core/log_settings.h +++ b/library/cpp/actors/core/log_settings.h @@ -41,7 +41,6 @@ namespace NActors { // Functions converts EComponent id to string using EComponentToStringFunc = std::function<const TString&(EComponent)>; - ; // Log settings struct TComponentSettings { diff --git a/library/cpp/actors/interconnect/handshake_broker.h b/library/cpp/actors/interconnect/handshake_broker.h index f53ab4edd2..d2e1b8b6ac 100644 --- a/library/cpp/actors/interconnect/handshake_broker.h +++ b/library/cpp/actors/interconnect/handshake_broker.h @@ -142,7 +142,7 @@ namespace NActors { void Bootstrap() { Become(&TThis::StateFunc); - }; + } }; inline IActor* CreateHandshakeBroker(ui32 maxCapacity) { @@ -153,4 +153,4 @@ namespace NActors { char x[12] = {'I', 'C', 'H', 's', 'h', 'k', 'B', 'r', 'k', 'O', 'u', 't'}; return TActorId(0, TStringBuf(std::begin(x), std::end(x))); } -}; +} diff --git a/library/cpp/binsaver/buffered_io.h b/library/cpp/binsaver/buffered_io.h index 75465c9c5c..9a0b302b6f 100644 --- a/library/cpp/binsaver/buffered_io.h +++ b/library/cpp/binsaver/buffered_io.h @@ -7,7 +7,6 @@ struct IBinaryStream { virtual ~IBinaryStream() = default; - ; inline i64 Write(const void* userBuffer, i64 size) { if (size <= Max<int>()) { diff --git a/library/cpp/binsaver/ut/binsaver_ut.cpp b/library/cpp/binsaver/ut/binsaver_ut.cpp index 37eba5406f..24cbc0d163 100644 --- a/library/cpp/binsaver/ut/binsaver_ut.cpp +++ b/library/cpp/binsaver/ut/binsaver_ut.cpp @@ -195,4 +195,3 @@ Y_UNIT_TEST(TestMemberAndOpIsMain) { TestBinSaverSerialization(obj); } } -; diff --git a/library/cpp/codecs/ut/float_huffman_ut.cpp b/library/cpp/codecs/ut/float_huffman_ut.cpp index 3156fb1f46..e20e53041b 100644 --- a/library/cpp/codecs/ut/float_huffman_ut.cpp +++ b/library/cpp/codecs/ut/float_huffman_ut.cpp @@ -234,4 +234,4 @@ Y_UNIT_TEST_SUITE(FloatHuffmanTest) { Y_UNIT_TEST(TestDecompressEmpty) { UNIT_ASSERT_EXCEPTION(fh::Decode({}), yexception); } -}; +} diff --git a/library/cpp/codecs/ut/tls_cache_ut.cpp b/library/cpp/codecs/ut/tls_cache_ut.cpp index 8101af761f..8e808cfadb 100644 --- a/library/cpp/codecs/ut/tls_cache_ut.cpp +++ b/library/cpp/codecs/ut/tls_cache_ut.cpp @@ -33,4 +33,3 @@ Y_UNIT_TEST(TestAcquireReleaseReuse) { // when the factory dies we should see no leaks } } -; diff --git a/library/cpp/compproto/compproto_ut.cpp b/library/cpp/compproto/compproto_ut.cpp index 9393be967a..f70b533d5d 100644 --- a/library/cpp/compproto/compproto_ut.cpp +++ b/library/cpp/compproto/compproto_ut.cpp @@ -20,7 +20,7 @@ static ui32 PseudoRandom(ui32 max) { gSeed *= 419; gSeed = gSeed ^ (ui64(max) << 17); return gSeed % max; -}; +} enum ECompMode { CM_SINGLEPASS, diff --git a/library/cpp/compproto/huff.h b/library/cpp/compproto/huff.h index fa5c139189..3d93c0184d 100644 --- a/library/cpp/compproto/huff.h +++ b/library/cpp/compproto/huff.h @@ -190,7 +190,7 @@ namespace NCompProto { Max = ::Max(Max, (ui64)value); Total += weight; AddMap(value, weight); - }; + } }; struct THuffNode { @@ -273,7 +273,7 @@ namespace NCompProto { } return ret; - }; + } struct TCoderEntry { ui32 MinValue; diff --git a/library/cpp/config/value.h b/library/cpp/config/value.h index bfd1e2f8c3..9617d064b9 100644 --- a/library/cpp/config/value.h +++ b/library/cpp/config/value.h @@ -65,7 +65,7 @@ namespace NConfig { return ConstructValueImpl(t); } - }; + } template <class T> inline IValue* ConstructValue(const T& t) { diff --git a/library/cpp/containers/comptrie/benchmark/main.cpp b/library/cpp/containers/comptrie/benchmark/main.cpp index 6e42dad18a..bbb55aa14a 100644 --- a/library/cpp/containers/comptrie/benchmark/main.cpp +++ b/library/cpp/containers/comptrie/benchmark/main.cpp @@ -89,7 +89,7 @@ struct TDatasetInstance { Samples.back() += dictionary[rng.GenRand() % dictionary.size()]; } } - }; + } TString GetSample(size_t iteration) const { TFastRng<ui64> rng(iteration); @@ -159,7 +159,7 @@ struct TAhoCorasickInstance { builder.SaveToStream(&buffer); Instance.Reset(new TDefaultMappedAhoCorasick(TBlob::FromBuffer(buffer.Buffer()))); - }; + } THolder<TDefaultMappedAhoCorasick> Instance; }; diff --git a/library/cpp/containers/comptrie/comptrie_trie.h b/library/cpp/containers/comptrie/comptrie_trie.h index a3f1fcfb5c..4925922627 100644 --- a/library/cpp/containers/comptrie/comptrie_trie.h +++ b/library/cpp/containers/comptrie/comptrie_trie.h @@ -104,7 +104,7 @@ public: const TBlob& Data() const { return DataHolder; - }; + } const NCompactTrie::ILeafSkipper& GetSkipper() const { return Skipper; diff --git a/library/cpp/containers/comptrie/pattern_searcher.h b/library/cpp/containers/comptrie/pattern_searcher.h index caab51dc1c..087c908863 100644 --- a/library/cpp/containers/comptrie/pattern_searcher.h +++ b/library/cpp/containers/comptrie/pattern_searcher.h @@ -26,7 +26,7 @@ namespace NCompactTrie { const size_t FLAGS_SIZE = sizeof(char); const size_t SYMBOL_SIZE = sizeof(char); -}; +} template <class T = char, class D = ui64, class S = TCompactTriePacker<D>> class TCompactPatternSearcherBuilder : protected TCompactTrieBuilder<T, D, S> { diff --git a/library/cpp/containers/stack_vector/stack_vec.h b/library/cpp/containers/stack_vector/stack_vec.h index ea648767ae..91ae8a4778 100644 --- a/library/cpp/containers/stack_vector/stack_vec.h +++ b/library/cpp/containers/stack_vector/stack_vec.h @@ -46,7 +46,7 @@ namespace NPrivate { public: //NOTE: it is important to make this syntax; using =default will lead to memset https://godbolt.org/z/vTqzK9aWr - TStackBasedAllocator() noexcept {}; + TStackBasedAllocator() noexcept {} template < typename... TArgs, diff --git a/library/cpp/coroutine/engine/stack/stack_allocator.h b/library/cpp/coroutine/engine/stack/stack_allocator.h index ab8806e282..03e1ac5604 100644 --- a/library/cpp/coroutine/engine/stack/stack_allocator.h +++ b/library/cpp/coroutine/engine/stack/stack_allocator.h @@ -31,7 +31,7 @@ namespace NCoro::NStack { if (stack.GetAlignedMemory()) { DoFreeStack(stack); } - }; + } virtual TAllocatorStats GetStackStats() const noexcept = 0; diff --git a/library/cpp/deprecated/split/delim_string_iter_ut.cpp b/library/cpp/deprecated/split/delim_string_iter_ut.cpp index ebb5c59927..a9277797c6 100644 --- a/library/cpp/deprecated/split/delim_string_iter_ut.cpp +++ b/library/cpp/deprecated/split/delim_string_iter_ut.cpp @@ -14,7 +14,7 @@ static void AssertStringSplit(const TString& str, const TString& delim, const TV ++it; } UNIT_ASSERT(!it.Valid()); -}; +} Y_UNIT_TEST_SUITE(TDelimStrokaIterTestSuite) { Y_UNIT_TEST(SingleCharacterAsDelimiter) { diff --git a/library/cpp/grpc/server/grpc_server.h b/library/cpp/grpc/server/grpc_server.h index fb2726582c..a571509caa 100644 --- a/library/cpp/grpc/server/grpc_server.h +++ b/library/cpp/grpc/server/grpc_server.h @@ -286,7 +286,7 @@ public: } return TShutdownGuard(this); - }; + } bool IsUnsafeToShutdown() const override { return AtomicGet(GuardCount_) > 0; diff --git a/library/cpp/http/fetch/http_digest.cpp b/library/cpp/http/fetch/http_digest.cpp index 1eaa02b7f2..4dff4b047d 100644 --- a/library/cpp/http/fetch/http_digest.cpp +++ b/library/cpp/http/fetch/http_digest.cpp @@ -94,7 +94,7 @@ void httpDigestHandler::digestCalcHA1(const THttpAuthHeader& hd, } ctx.End(outSessionKey); -}; +} /************************************************************/ /* calculate request-digest/response-digest as per HTTP Digest spec */ diff --git a/library/cpp/http/io/stream_ut.cpp b/library/cpp/http/io/stream_ut.cpp index 1ea35df675..02401fffd9 100644 --- a/library/cpp/http/io/stream_ut.cpp +++ b/library/cpp/http/io/stream_ut.cpp @@ -355,7 +355,7 @@ Y_UNIT_TEST_SUITE(THttpStreamTest) { size_t bodyPos = str.find(bodyDelimiter); UNIT_ASSERT(bodyPos != TString::npos); return str.substr(bodyPos + strlen(bodyDelimiter)); - }; + } TString SimulateBodyEncoding(const char* body) { TString bodyStr; @@ -364,7 +364,7 @@ Y_UNIT_TEST_SUITE(THttpStreamTest) { TZLibCompress comprOut(&chunkOut, ZLib::GZip); comprOut << body; return bodyStr; - }; + } Y_UNIT_TEST(TestRebuildStreamOnPost) { const char* body = "<html>Hello</html>"; diff --git a/library/cpp/http/server/http_ut.cpp b/library/cpp/http/server/http_ut.cpp index 7fc918f74f..b570d1e6e3 100644 --- a/library/cpp/http/server/http_ut.cpp +++ b/library/cpp/http/server/http_ut.cpp @@ -539,7 +539,7 @@ Y_UNIT_TEST_SUITE(THttpServerTest) { UNIT_ASSERT_EXCEPTION_CONTAINS(r.Execute(), TSystemError, "Connection reset by peer"); server.Stop(); - }; + } Y_UNIT_TEST(TTestReleaseConnection) { TPortManager pm; @@ -557,7 +557,7 @@ Y_UNIT_TEST_SUITE(THttpServerTest) { server.Stop(); UNIT_ASSERT_STRINGS_EQUAL(serverImpl.ExceptionMessage, "(yexception) some error"); - }; + } THttpInput SendRequest(TSocket& socket, ui16 port) { TSocketInput si(socket); @@ -715,7 +715,7 @@ Y_UNIT_TEST_SUITE(THttpServerTest) { UNIT_ASSERT(resp == TString::Join("127.0.0.1", ":", ToString(port2))); server.Stop(); - }; + } #if 0 Y_UNIT_TEST(TestSocketsLeak) { diff --git a/library/cpp/ipmath/ipmath.cpp b/library/cpp/ipmath/ipmath.cpp index f9e56c337c..110652b861 100644 --- a/library/cpp/ipmath/ipmath.cpp +++ b/library/cpp/ipmath/ipmath.cpp @@ -319,11 +319,11 @@ TIpAddressRange::TIterator TIpAddressRange::End() const { TIpAddressRange::TIpAddressRangeBuilder TIpAddressRange::From(TIpv6Address from) { return TIpAddressRangeBuilder{from}; -}; +} TIpAddressRange::TIpAddressRangeBuilder TIpAddressRange::From(const TString& from) { return TIpAddressRangeBuilder{from}; -}; +} bool operator==(const TIpAddressRange& lhs, const TIpAddressRange& rhs) { return lhs.Start_ == rhs.Start_ && lhs.End_ == rhs.End_; diff --git a/library/cpp/iterator/mapped.h b/library/cpp/iterator/mapped.h index 6c5e763184..6a4522e865 100644 --- a/library/cpp/iterator/mapped.h +++ b/library/cpp/iterator/mapped.h @@ -12,7 +12,7 @@ namespace NIteratorPrivate { return std::is_same_v<typename std::iterator_traits<TIterator>::iterator_category, std::random_access_iterator_tag>; } -}; +} template <class TIterator, class TMapper> diff --git a/library/cpp/logger/composite_ut.cpp b/library/cpp/logger/composite_ut.cpp index f330419271..0b79a41b32 100644 --- a/library/cpp/logger/composite_ut.cpp +++ b/library/cpp/logger/composite_ut.cpp @@ -95,4 +95,4 @@ Y_UNIT_TEST_SUITE(TCompositeLogTest) UNIT_ASSERT(newCfg.ParseJson(ILogBackendCreator::Create(ctx)->AsJson())); DoTestComposite(TLogBackendCreatorInitContextYConf(*newCfg.GetRootSection()), "yconf_log_"); } -}; +} diff --git a/library/cpp/lwtrace/log_ut.cpp b/library/cpp/lwtrace/log_ut.cpp index d9ee5f10ae..b0122f715c 100644 --- a/library/cpp/lwtrace/log_ut.cpp +++ b/library/cpp/lwtrace/log_ut.cpp @@ -32,7 +32,7 @@ namespace ++NumSeen; } }; -}; +} Y_UNIT_TEST_SUITE(LWTraceLog) { Y_UNIT_TEST(ShouldAccumulateTracesViaReadItems) { diff --git a/library/cpp/malloc/nalf/alloc_helpers.h b/library/cpp/malloc/nalf/alloc_helpers.h index bd76331395..a48f5a41ee 100644 --- a/library/cpp/malloc/nalf/alloc_helpers.h +++ b/library/cpp/malloc/nalf/alloc_helpers.h @@ -109,7 +109,7 @@ struct TNalfAllocator { ~TNalfAllocator() noexcept = default; template <typename U> - explicit TNalfAllocator(TNalfAllocator<U, Hint>) noexcept {}; + explicit TNalfAllocator(TNalfAllocator<U, Hint>) noexcept {} template <typename U> struct rebind { typedef TNalfAllocator<U, Hint> other; }; diff --git a/library/cpp/messagebus/test/ut/messagebus_ut.cpp b/library/cpp/messagebus/test/ut/messagebus_ut.cpp index 040f9b7702..8d2f4aa444 100644 --- a/library/cpp/messagebus/test/ut/messagebus_ut.cpp +++ b/library/cpp/messagebus/test/ut/messagebus_ut.cpp @@ -1059,7 +1059,7 @@ Y_UNIT_TEST_SUITE(TMessageBusTests) { client.WaitReplies(); server.WaitForOnMessageCount(test_msg_count); - }; + } Y_UNIT_TEST(TestConnectionAttempts) { TObjectCountCheck objectCountCheck; @@ -1091,7 +1091,7 @@ Y_UNIT_TEST_SUITE(TMessageBusTests) { // First connection attempt is for connect call; second one is to get connect result. UNIT_ASSERT_EQUAL(client.Session->GetConnectSyscallsNumForTest(noServerAddr), 4); } - }; + } Y_UNIT_TEST(TestConnectionAttemptsOnNoMessagesAndNotReconnectWhenIdle) { TObjectCountCheck objectCountCheck; @@ -1118,7 +1118,7 @@ Y_UNIT_TEST_SUITE(TMessageBusTests) { UNIT_ASSERT_EQUAL(client.Session->GetConnectSyscallsNumForTest(noServerAddr), 2); Sleep(TDuration::MilliSeconds(10 * clientConfig.RetryInterval)); UNIT_ASSERT_EQUAL(client.Session->GetConnectSyscallsNumForTest(noServerAddr), 2); - }; + } Y_UNIT_TEST(TestConnectionAttemptsOnNoMessagesAndReconnectWhenIdle) { TObjectCountCheck objectCountCheck; @@ -1147,5 +1147,5 @@ Y_UNIT_TEST_SUITE(TMessageBusTests) { // it is undeterministic how many reconnects will be during that amount of time // but it should occur at least once UNIT_ASSERT(client.Session->GetConnectSyscallsNumForTest(noServerAddr) > 2); - }; -}; + } +} diff --git a/library/cpp/monlib/metrics/ewma_ut.cpp b/library/cpp/monlib/metrics/ewma_ut.cpp index 01ef2478f7..d7ff566c70 100644 --- a/library/cpp/monlib/metrics/ewma_ut.cpp +++ b/library/cpp/monlib/metrics/ewma_ut.cpp @@ -109,4 +109,4 @@ Y_UNIT_TEST_SUITE(TEwmaTest) { ElapseMinute(*ewma); } } -}; +} diff --git a/library/cpp/monlib/metrics/labels.h b/library/cpp/monlib/metrics/labels.h index d841ea666c..7e18e88161 100644 --- a/library/cpp/monlib/metrics/labels.h +++ b/library/cpp/monlib/metrics/labels.h @@ -316,7 +316,7 @@ namespace NMonitoring { inline void Clear() noexcept override { Labels_.clear(); - }; + } TLabelImpl<TStringBackend>& front() { return Labels_.front(); diff --git a/library/cpp/packedtypes/packed_ut.cpp b/library/cpp/packedtypes/packed_ut.cpp index 70a22cf9c3..579c003b39 100644 --- a/library/cpp/packedtypes/packed_ut.cpp +++ b/library/cpp/packedtypes/packed_ut.cpp @@ -127,4 +127,4 @@ Y_UNIT_TEST_SUITE(TPackedTest) { } } #endif -}; +} diff --git a/library/cpp/protobuf/util/traits.h b/library/cpp/protobuf/util/traits.h index 50f036d0ea..7c2c6f15b4 100644 --- a/library/cpp/protobuf/util/traits.h +++ b/library/cpp/protobuf/util/traits.h @@ -44,7 +44,7 @@ namespace NProtoBuf { Y_ASSERT(fd); \ return fd->default_value_##method(); \ } \ - }; + } DECLARE_CPPTYPE_DEFAULT(FieldDescriptor::CppType::CPPTYPE_INT32, int32); DECLARE_CPPTYPE_DEFAULT(FieldDescriptor::CppType::CPPTYPE_INT64, int64); @@ -108,7 +108,7 @@ namespace NProtoBuf { struct TSelectCppType<type> { \ static const FieldDescriptor::CppType Result = cpptype; \ typedef type T; \ - }; + } DECLARE_CPPTYPE_TRAITS(FieldDescriptor::CPPTYPE_INT32, i32, Int32); DECLARE_CPPTYPE_TRAITS(FieldDescriptor::CPPTYPE_INT64, i64, Int64); diff --git a/library/cpp/scheme/scheme_cast.h b/library/cpp/scheme/scheme_cast.h index 00839e8017..3a44a189fa 100644 --- a/library/cpp/scheme/scheme_cast.h +++ b/library/cpp/scheme/scheme_cast.h @@ -18,14 +18,14 @@ namespace NJsonConverters { const TString ToJson(const bool sort = false) const { return ToTValue().ToJson(sort); - }; + } void FromJson(const TStringBuf& json, const bool validate = false) { NSc::TValue v = NSc::TValue::FromJson(json); FromTValue(v, validate); } - virtual ~IJsonSerializable(){}; + virtual ~IJsonSerializable() = default; }; ////////////////////////////////////////////////////////////////////// // fwd declarations diff --git a/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp b/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp index ce3786a671..fb2a85781a 100644 --- a/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp +++ b/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp @@ -222,4 +222,4 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) { DoTestParsePathFailure("\x22\x0C", 1, 0); } -}; +} diff --git a/library/cpp/scheme/tests/ut/fuzz_ops_found_bugs_ut.cpp b/library/cpp/scheme/tests/ut/fuzz_ops_found_bugs_ut.cpp index a445b0f87c..fb60276c94 100644 --- a/library/cpp/scheme/tests/ut/fuzz_ops_found_bugs_ut.cpp +++ b/library/cpp/scheme/tests/ut/fuzz_ops_found_bugs_ut.cpp @@ -9,4 +9,4 @@ Y_UNIT_TEST_SUITE(TTestSchemeFuzzOpsFoundBugs) { Y_UNIT_TEST(TestBug1) { FuzzOps(HexDecode("98040129000525"), true); } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp index 4f907157e9..61b4ecdce7 100644 --- a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp @@ -91,7 +91,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) { int A, B; TCustom() : A(0) - , B(0){}; + , B(0){} TCustom(int a, int b) : A(a) , B(b) @@ -159,4 +159,4 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) { UNIT_ASSERT_EXCEPTION(FromJson<TSI>(json, true), yexception); UNIT_ASSERT_EXCEPTION(FromJson<TPI>(json, true), yexception); } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp index daeb2654f9..fb5aac2873 100644 --- a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp @@ -158,4 +158,4 @@ Y_UNIT_TEST_SUITE(TSchemeJsonTest) { UNIT_ASSERT(NSc::TValue::FromJson(duplicatedKeys).IsDict()); UNIT_ASSERT(NSc::TValue::FromJson(duplicatedKeys, NSc::TValue::JO_PARSER_DISALLOW_DUPLICATE_KEYS).IsNull()); } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp b/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp index 38c5283383..7e1853231a 100644 --- a/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp @@ -232,4 +232,4 @@ Y_UNIT_TEST_SUITE(TSchemeMergeTest) { UNIT_ASSERT_JSON_EQ_JSON(v, "{a:[{a:1},{a:1,b:2,d:2},{b:2}]}"); } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_path_ut.cpp b/library/cpp/scheme/tests/ut/scheme_path_ut.cpp index 0d4d79d483..665f7639be 100644 --- a/library/cpp/scheme/tests/ut/scheme_path_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_path_ut.cpp @@ -156,4 +156,4 @@ Y_UNIT_TEST_SUITE(TSchemePathTest) { UNIT_ASSERT_VALUES_EQUAL(val.ToJson(), res); } } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_proto_ut.cpp b/library/cpp/scheme/tests/ut/scheme_proto_ut.cpp index e711a0d092..5db5b48a4d 100644 --- a/library/cpp/scheme/tests/ut/scheme_proto_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_proto_ut.cpp @@ -217,4 +217,4 @@ Y_UNIT_TEST_SUITE(TSchemeProtoTest) { UNIT_ASSERT_C(NProtoBuf::IsEqual(m, proto, &differentPath), differentPath); } } -}; +} diff --git a/library/cpp/scheme/tests/ut/scheme_ut.cpp b/library/cpp/scheme/tests/ut/scheme_ut.cpp index cfe39cc539..182f65fac7 100644 --- a/library/cpp/scheme/tests/ut/scheme_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_ut.cpp @@ -963,4 +963,4 @@ Y_UNIT_TEST_SUITE(TSchemeTest) { UNIT_ASSERT_VALUES_EQUAL(list1.ToJson(), list2.ToJson()); UNIT_ASSERT_VALUES_EQUAL(list2.ToJson(), list3.ToJson()); } -}; +} diff --git a/library/cpp/sse/ut/test.cpp b/library/cpp/sse/ut/test.cpp index 33c999d284..a1506ddc60 100644 --- a/library/cpp/sse/ut/test.cpp +++ b/library/cpp/sse/ut/test.cpp @@ -1716,7 +1716,7 @@ void TSSEEmulTest::Test_mm_cvtepi32_ps() { }; Test_mm_convertop<i32, float, 4, __m128i, __m128, THelper, WrapF(_mm_cvtepi32_ps), float32x4_t>(); -}; +} void TSSEEmulTest::Test_mm_cvtps_epi32() { struct THelper { @@ -1726,7 +1726,7 @@ void TSSEEmulTest::Test_mm_cvtps_epi32() { }; Test_mm_convertop<float, i32, 4, __m128, __m128i, THelper, T_mm_CallWrapper<__m128i, decltype(_mm_cvtps_epi32), _mm_cvtps_epi32>, int32x4_t>(); -}; +} void TSSEEmulTest::Test_mm_cvttps_epi32() { struct THelper { @@ -1736,7 +1736,7 @@ void TSSEEmulTest::Test_mm_cvttps_epi32() { }; Test_mm_convertop<float, i32, 4, __m128, __m128i, THelper, Wrap(_mm_cvttps_epi32), int32x4_t>(); -}; +} template <typename TLoadVector, typename TCastVector, typename TFunc, TFunc* func> @@ -1756,7 +1756,7 @@ void TSSEEmulTest::Test_mm_castXX() { UNIT_ASSERT(memcmp(&data, &verify, 16) == 0); UNIT_ASSERT(memcmp(&data, &constverify, 16) == 0); -}; +} void TSSEEmulTest::Test_mm_castsi128_ps() { Test_mm_castXX<__m128i, __m128, diff --git a/library/cpp/string_utils/base64/base64_ut.cpp b/library/cpp/string_utils/base64/base64_ut.cpp index cb6ca7def2..83775f072c 100644 --- a/library/cpp/string_utils/base64/base64_ut.cpp +++ b/library/cpp/string_utils/base64/base64_ut.cpp @@ -74,12 +74,12 @@ using namespace std::string_view_literals; } namespace NB64Etalon { - BASE64_UT_DECLARE_BASE64_IMPL(PLAIN32, plain32_base64_encode, plain32_base64_decode); - BASE64_UT_DECLARE_BASE64_IMPL(PLAIN64, plain64_base64_encode, plain64_base64_decode); - BASE64_UT_DECLARE_BASE64_IMPL(NEON32, neon32_base64_encode, neon32_base64_decode); - BASE64_UT_DECLARE_BASE64_IMPL(NEON64, neon64_base64_encode, neon64_base64_decode); - BASE64_UT_DECLARE_BASE64_IMPL(AVX2, avx2_base64_encode, avx2_base64_decode); - BASE64_UT_DECLARE_BASE64_IMPL(SSSE3, ssse3_base64_encode, ssse3_base64_decode); + BASE64_UT_DECLARE_BASE64_IMPL(PLAIN32, plain32_base64_encode, plain32_base64_decode) + BASE64_UT_DECLARE_BASE64_IMPL(PLAIN64, plain64_base64_encode, plain64_base64_decode) + BASE64_UT_DECLARE_BASE64_IMPL(NEON32, neon32_base64_encode, neon32_base64_decode) + BASE64_UT_DECLARE_BASE64_IMPL(NEON64, neon64_base64_encode, neon64_base64_decode) + BASE64_UT_DECLARE_BASE64_IMPL(AVX2, avx2_base64_encode, avx2_base64_decode) + BASE64_UT_DECLARE_BASE64_IMPL(SSSE3, ssse3_base64_encode, ssse3_base64_decode) #undef BASE64_UT_DECLARE_BASE64_IMPL diff --git a/library/cpp/string_utils/csv/csv.cpp b/library/cpp/string_utils/csv/csv.cpp index 218473c62c..bca9a5d7f1 100644 --- a/library/cpp/string_utils/csv/csv.cpp +++ b/library/cpp/string_utils/csv/csv.cpp @@ -55,7 +55,7 @@ TStringBuf NCsvFormat::CsvSplitter::Consume() { ++TokenEnd; } } -}; +} TString NCsvFormat::TLinesSplitter::ConsumeLine() { bool Escape = false; @@ -79,4 +79,4 @@ TString NCsvFormat::TLinesSplitter::ConsumeLine() { } } return result; -}; +} diff --git a/library/cpp/string_utils/levenshtein_diff/levenshtein_diff_ut.cpp b/library/cpp/string_utils/levenshtein_diff/levenshtein_diff_ut.cpp index 570a7f5c13..67c0f1da6f 100644 --- a/library/cpp/string_utils/levenshtein_diff/levenshtein_diff_ut.cpp +++ b/library/cpp/string_utils/levenshtein_diff/levenshtein_diff_ut.cpp @@ -8,19 +8,19 @@ namespace { float unaryZeroWeigher(const char&) { return 0.0f; - }; + } float unaryMaxWeigher(const char&) { return 1.0f; - }; + } float binaryZeroWeigher(const char&, const char&) { return 0.0f; - }; + } float binaryMaxWeigher(const char&, const char&) { return 1.0f; - }; + } } diff --git a/library/cpp/testing/unittest/gtest.h b/library/cpp/testing/unittest/gtest.h index b6768b1bf0..a59ea48fdd 100644 --- a/library/cpp/testing/unittest/gtest.h +++ b/library/cpp/testing/unittest/gtest.h @@ -64,7 +64,7 @@ namespace testing { } \ void NN(); \ }; \ - }; \ + } \ TEST_IMPL(N, NN, FF) { \ NTestSuite##N##NN::TTestSuite().NN(); \ } \ diff --git a/library/cpp/threading/chunk_queue/queue_ut.cpp b/library/cpp/threading/chunk_queue/queue_ut.cpp index 8cb36d8dd1..717ce9f047 100644 --- a/library/cpp/threading/chunk_queue/queue_ut.cpp +++ b/library/cpp/threading/chunk_queue/queue_ut.cpp @@ -53,7 +53,6 @@ Y_UNIT_TEST(ShouldStoreMultipleChunks) { } } } -; //////////////////////////////////////////////////////////////////////////////// @@ -89,7 +88,6 @@ Y_UNIT_TEST(ShouldReturnEntries) { UNIT_ASSERT(!queue.Dequeue(result)); } } -; //////////////////////////////////////////////////////////////////////////////// @@ -125,7 +123,6 @@ Y_UNIT_TEST(ShouldReturnEntries) { UNIT_ASSERT(!queue.Dequeue(result)); } } -; //////////////////////////////////////////////////////////////////////////////// @@ -163,7 +160,6 @@ Y_UNIT_TEST(ShouldReturnEntries) { UNIT_ASSERT(!queue.Dequeue(result)); } } -; //////////////////////////////////////////////////////////////////////////////// @@ -201,5 +197,4 @@ Y_UNIT_TEST(ShouldReturnEntries) { UNIT_ASSERT(!queue.Dequeue(result)); } } -; } diff --git a/library/cpp/threading/equeue/equeue_ut.cpp b/library/cpp/threading/equeue/equeue_ut.cpp index 9cf2aced44..8557f63ac0 100644 --- a/library/cpp/threading/equeue/equeue_ut.cpp +++ b/library/cpp/threading/equeue/equeue_ut.cpp @@ -74,7 +74,7 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) { struct TJob: public IObjectInQueue { void Process(void*) override { AtomicIncrement(Counters.Processed); - }; + } }; static TJob Job; diff --git a/library/cpp/threading/local_executor/ut/local_executor_ut.cpp b/library/cpp/threading/local_executor/ut/local_executor_ut.cpp index ac5737717c..a459922e97 100644 --- a/library/cpp/threading/local_executor/ut/local_executor_ut.cpp +++ b/library/cpp/threading/local_executor/ut/local_executor_ut.cpp @@ -233,7 +233,6 @@ Y_UNIT_TEST(RunOneAndCheckExceptionsWithWaitCompleteZeroExtraThreads) { RunRangeAndCheckExceptionsWithWaitComplete(1, 0); } } -; Y_UNIT_TEST_SUITE(ExecRangeWithThrow){ void RunParallelWhichThrowsTTestException(int rangeStart, int rangeSize, int threadsCount, int flags, TAtomic& processed){ @@ -323,7 +322,6 @@ Y_UNIT_TEST(NestedParallelExceptionsDoNotLeak) { UNIT_ASSERT_EQUAL(AtomicGet(processed2), DefaultRangeSize); } } -; Y_UNIT_TEST_SUITE(ExecLargeRangeWithThrow){ @@ -368,4 +366,4 @@ Y_UNIT_TEST_SUITE(ExecLargeRangeWithThrow){ TTestException ); } -}; +} diff --git a/library/cpp/threading/queue/basic_ut.cpp b/library/cpp/threading/queue/basic_ut.cpp index 5f56f8583e..5877ab9a1c 100644 --- a/library/cpp/threading/queue/basic_ut.cpp +++ b/library/cpp/threading/queue/basic_ut.cpp @@ -30,7 +30,7 @@ public: popped = queue.Pop(); UNIT_ASSERT_VALUES_EQUAL(popped, nullptr); - }; + } void OnePushOnePop_Repeat1M() { TQueueType queue; diff --git a/library/cpp/unicode/normalization/decomposition_table.h b/library/cpp/unicode/normalization/decomposition_table.h index 23f3da334f..0e62dd3149 100644 --- a/library/cpp/unicode/normalization/decomposition_table.h +++ b/library/cpp/unicode/normalization/decomposition_table.h @@ -25,4 +25,4 @@ namespace NUnicode { } } -}; // namespace NUnicode +} // namespace NUnicode diff --git a/library/cpp/yaml/fyamlcpp/fyamlcpp.h b/library/cpp/yaml/fyamlcpp/fyamlcpp.h index 6df7b244c6..ca53256349 100644 --- a/library/cpp/yaml/fyamlcpp/fyamlcpp.h +++ b/library/cpp/yaml/fyamlcpp/fyamlcpp.h @@ -118,7 +118,7 @@ class TNodeRef { {} public: - TNodeRef() {}; + TNodeRef() = default; TNodeRef(const TNodeRef& other) { Node_ = other.Node_; } diff --git a/library/cpp/yconf/conf.h b/library/cpp/yconf/conf.h index 32347d8a62..c6ec753ce4 100644 --- a/library/cpp/yconf/conf.h +++ b/library/cpp/yconf/conf.h @@ -380,7 +380,7 @@ private: strict = false; DEFINE_UNSTRICT_SECTION(AnyDirectives) -END_DEFINE_SECTION; +END_DEFINE_SECTION #define EMBEDDED_CONFIG(SectionName) \ if (sec.Parent != &sec) /* not root not placed at root */ { \ diff --git a/library/cpp/yson/node/serialize.cpp b/library/cpp/yson/node/serialize.cpp index aeb467622b..c59fc7b624 100644 --- a/library/cpp/yson/node/serialize.cpp +++ b/library/cpp/yson/node/serialize.cpp @@ -40,17 +40,17 @@ void Serialize(type value, NYson::IYsonConsumer* consumer) \ consumer->OnUint64Scalar(static_cast<ui64>(value)); \ } -SERIALIZE_SIGNED(signed char); -SERIALIZE_SIGNED(short); -SERIALIZE_SIGNED(int); -SERIALIZE_SIGNED(long); -SERIALIZE_SIGNED(long long); - -SERIALIZE_UNSIGNED(unsigned char); -SERIALIZE_UNSIGNED(unsigned short); -SERIALIZE_UNSIGNED(unsigned int); -SERIALIZE_UNSIGNED(unsigned long); -SERIALIZE_UNSIGNED(unsigned long long); +SERIALIZE_SIGNED(signed char) +SERIALIZE_SIGNED(short) +SERIALIZE_SIGNED(int) +SERIALIZE_SIGNED(long) +SERIALIZE_SIGNED(long long) + +SERIALIZE_UNSIGNED(unsigned char) +SERIALIZE_UNSIGNED(unsigned short) +SERIALIZE_UNSIGNED(unsigned int) +SERIALIZE_UNSIGNED(unsigned long) +SERIALIZE_UNSIGNED(unsigned long long) #undef SERIALIZE_SIGNED #undef SERIALIZE_UNSIGNED |