diff options
author | vlmarkov <vlmarkov@yandex-team.ru> | 2022-02-10 16:46:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:07 +0300 |
commit | dbd3185956979f21ea16ef90c1ba4aa2d6a75fae (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library | |
parent | 6a382399c9a1053abd7d772ec30ca9873f7429a1 (diff) | |
download | ydb-dbd3185956979f21ea16ef90c1ba4aa2d6a75fae.tar.gz |
Restoring authorship annotation for <vlmarkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/actors/core/executor_pool_united.cpp | 2 | ||||
-rw-r--r-- | library/cpp/actors/http/http.h | 2 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/interconnect_handshake.cpp | 10 | ||||
-rw-r--r-- | library/cpp/codecs/greedy_dict/gd_stats.h | 4 | ||||
-rw-r--r-- | library/cpp/coroutine/engine/network.cpp | 4 | ||||
-rw-r--r-- | library/cpp/histogram/adaptive/adaptive_histogram.cpp | 2 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpparser.h | 4 | ||||
-rw-r--r-- | library/cpp/http/fetch/httpzreader.h | 2 | ||||
-rw-r--r-- | library/cpp/http/io/stream.cpp | 2 | ||||
-rw-r--r-- | library/cpp/protobuf/json/proto2json_printer.cpp | 2 | ||||
-rw-r--r-- | library/cpp/regex/hyperscan/hyperscan.cpp | 4 | ||||
-rw-r--r-- | library/cpp/scheme/scheme.cpp | 2 | ||||
-rw-r--r-- | library/cpp/scheme/scimpl_json_write.cpp | 2 | ||||
-rw-r--r-- | library/cpp/scheme/tests/fuzz_ops/lib/vm_parse.cpp | 4 | ||||
-rw-r--r-- | library/cpp/streams/bzip2/bzip2.cpp | 2 | ||||
-rw-r--r-- | library/cpp/terminate_handler/terminate_handler.cpp | 4 | ||||
-rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/parse.cpp | 2 | ||||
-rw-r--r-- | library/cpp/yson_pull/detail/writer.h | 4 |
19 files changed, 30 insertions, 30 deletions
diff --git a/library/cpp/actors/core/executor_pool_united.cpp b/library/cpp/actors/core/executor_pool_united.cpp index 885ccaae2d..dac6245635 100644 --- a/library/cpp/actors/core/executor_pool_united.cpp +++ b/library/cpp/actors/core/executor_pool_united.cpp @@ -546,7 +546,7 @@ namespace NActors { switch (SlowWorkerAction(wctx.PoolId)) { case WakeFast: WakeFastWorker(); - [[fallthrough]]; // no break; pass through + [[fallthrough]]; // no break; pass through case BecameIdle: wctx.Lease = wctx.Lease.NeverExpire(); wctx.PoolId = MaxPools; diff --git a/library/cpp/actors/http/http.h b/library/cpp/actors/http/http.h index 97327ea127..96c5c1ec48 100644 --- a/library/cpp/actors/http/http.h +++ b/library/cpp/actors/http/http.h @@ -505,7 +505,7 @@ public: switch (Stage) { case ERenderStage::Header: FinishHeader(); - break; + break; default: break; } diff --git a/library/cpp/actors/interconnect/interconnect_handshake.cpp b/library/cpp/actors/interconnect/interconnect_handshake.cpp index 58cd6dc639..9ede998d8e 100644 --- a/library/cpp/actors/interconnect/interconnect_handshake.cpp +++ b/library/cpp/actors/interconnect/interconnect_handshake.cpp @@ -207,7 +207,7 @@ namespace NActors { case NInterconnect::TSecureSocket::EStatus::ERROR: Fail(TEvHandshakeFail::HANDSHAKE_FAIL_PERMANENT, err, true); - [[fallthrough]]; + [[fallthrough]]; case NInterconnect::TSecureSocket::EStatus::WANT_READ: WaitPoller(true, false, "ReadEstablish"); @@ -224,7 +224,7 @@ namespace NActors { switch (const ui32 type = ev->GetTypeRewrite()) { case TEvents::TSystem::Wakeup: Fail(TEvHandshakeFail::HANDSHAKE_FAIL_TRANSIENT, Sprintf("Handshake timed out, State# %s", State.data()), true); - [[fallthrough]]; + [[fallthrough]]; case ui32(ENetwork::NodeInfo): case TEvInterconnect::EvNodeAddress: @@ -878,9 +878,9 @@ namespace NActors { Fail(TEvHandshakeFail::HANDSHAKE_FAIL_PERMANENT, Sprintf("Connection failed: %s", strerror(err)), true); } break; - - default: - break; + + default: + break; } auto it = LastLogNotice.find(PeerNodeId); diff --git a/library/cpp/codecs/greedy_dict/gd_stats.h b/library/cpp/codecs/greedy_dict/gd_stats.h index 9a5cee4219..b63c4c38d2 100644 --- a/library/cpp/codecs/greedy_dict/gd_stats.h +++ b/library/cpp/codecs/greedy_dict/gd_stats.h @@ -61,12 +61,12 @@ namespace NGreedyDict { switch (score) { case ES_LEN_COUNT: m = len; - [[fallthrough]]; + [[fallthrough]]; case ES_COUNT: return m * count; case ES_LEN_SIMPLE: m = len; - [[fallthrough]]; + [[fallthrough]]; case ES_SIMPLE: return m * SimpleTest(modelp, count, total); case ES_SOLAR: diff --git a/library/cpp/coroutine/engine/network.cpp b/library/cpp/coroutine/engine/network.cpp index c1dcf10d46..85b647d210 100644 --- a/library/cpp/coroutine/engine/network.cpp +++ b/library/cpp/coroutine/engine/network.cpp @@ -68,8 +68,8 @@ namespace NCoro { case ETIMEDOUT: if (status != EINPROGRESS) { break; - } - [[fallthrough]]; + } + [[fallthrough]]; default: status = ev.Status(); ret = &ev; diff --git a/library/cpp/histogram/adaptive/adaptive_histogram.cpp b/library/cpp/histogram/adaptive/adaptive_histogram.cpp index 8680e45b25..cbfc494021 100644 --- a/library/cpp/histogram/adaptive/adaptive_histogram.cpp +++ b/library/cpp/histogram/adaptive/adaptive_histogram.cpp @@ -190,7 +190,7 @@ namespace NKiwiAggr { case HT_ADAPTIVE_HISTOGRAM: if (CalcQuality != nullptr) break; // ok - [[fallthrough]]; + [[fallthrough]]; default: // not ok ythrow yexception() << "Attempt to parse TAdaptiveHistogram from THistogram protobuf record of type = " << (ui32)histo.GetType(); } diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h index d9348e9cca..769828e4ae 100644 --- a/library/cpp/http/fetch/httpparser.h +++ b/library/cpp/http/fetch/httpparser.h @@ -195,7 +195,7 @@ protected: case hp_begin_chunk_header: ChunkParser.Init(); State = hp_chunk_header; - [[fallthrough]]; + [[fallthrough]]; case hp_chunk_header: if ((ret = ChunkParser.Execute(buf, size)) < 0) { @@ -232,7 +232,7 @@ protected: return size; size = 0; } - break; + break; } } return size; diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h index 742ae47b77..68eb00853d 100644 --- a/library/cpp/http/fetch/httpzreader.h +++ b/library/cpp/http/fetch/httpzreader.h @@ -114,7 +114,7 @@ public: // there is no data in next_out yet if (BufSize == Stream.avail_out) continue; - [[fallthrough]]; // don't break or return; continue with Z_STREAM_END case + [[fallthrough]]; // don't break or return; continue with Z_STREAM_END case case Z_STREAM_END: if (Stream.total_out > MaxContSize) { diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp index 8f0b9612e4..6689be684f 100644 --- a/library/cpp/http/io/stream.cpp +++ b/library/cpp/http/io/stream.cpp @@ -323,7 +323,7 @@ private: p.KeepAlive = false; } } - [[fallthrough]]; + [[fallthrough]]; HEADERCMP(header, "expect") { auto findContinue = [&](const TStringBuf& s) { if (strnicmp(s.data(), "100-continue", 13) == 0) { diff --git a/library/cpp/protobuf/json/proto2json_printer.cpp b/library/cpp/protobuf/json/proto2json_printer.cpp index 0e6f780643..6123eab0f2 100644 --- a/library/cpp/protobuf/json/proto2json_printer.cpp +++ b/library/cpp/protobuf/json/proto2json_printer.cpp @@ -426,7 +426,7 @@ namespace NProtobufJson { default: ythrow yexception() << "Unsupported enum mode."; } - break; + break; } case FieldDescriptor::CPPTYPE_STRING: result = reflection->GetString(proto, &field); diff --git a/library/cpp/regex/hyperscan/hyperscan.cpp b/library/cpp/regex/hyperscan/hyperscan.cpp index b29c8f8a0f..ba321f9c29 100644 --- a/library/cpp/regex/hyperscan/hyperscan.cpp +++ b/library/cpp/regex/hyperscan/hyperscan.cpp @@ -33,7 +33,7 @@ namespace NHyperscan { switch (runtime) { default: Y_ASSERT(false); - [[fallthrough]]; + [[fallthrough]]; case ERuntime::Core2: case ERuntime::Corei7: return 0; @@ -57,7 +57,7 @@ namespace NHyperscan { switch (runtime) { default: Y_ASSERT(false); - [[fallthrough]]; + [[fallthrough]]; case ERuntime::Core2: AllocScratch = core2_hs_alloc_scratch; Scan = core2_hs_scan; diff --git a/library/cpp/scheme/scheme.cpp b/library/cpp/scheme/scheme.cpp index 4052af9089..3efd116d4f 100644 --- a/library/cpp/scheme/scheme.cpp +++ b/library/cpp/scheme/scheme.cpp @@ -178,7 +178,7 @@ namespace NSc { switch (otherCore.ValueType) { default: Y_ASSERT(false); - [[fallthrough]]; + [[fallthrough]]; case EType::Null: break; case EType::Bool: diff --git a/library/cpp/scheme/scimpl_json_write.cpp b/library/cpp/scheme/scimpl_json_write.cpp index de57095314..aadd7e6cd5 100644 --- a/library/cpp/scheme/scimpl_json_write.cpp +++ b/library/cpp/scheme/scimpl_json_write.cpp @@ -77,7 +77,7 @@ namespace NSc { switch (core.ValueType) { default: { Y_ASSERT(false); - [[fallthrough]]; /* no break */ + [[fallthrough]]; /* no break */ } case EType::Null: { out << TStringBuf("null"); diff --git a/library/cpp/scheme/tests/fuzz_ops/lib/vm_parse.cpp b/library/cpp/scheme/tests/fuzz_ops/lib/vm_parse.cpp index fd1b619b79..a03f5aef53 100644 --- a/library/cpp/scheme/tests/fuzz_ops/lib/vm_parse.cpp +++ b/library/cpp/scheme/tests/fuzz_ops/lib/vm_parse.cpp @@ -75,7 +75,7 @@ namespace NSc::NUt { if (!DoParsePos(state, ref)) { return Nothing(); } - [[fallthrough]]; + [[fallthrough]]; case TRef::T_CREATE_FRONT: case TRef::T_CREATE_BACK: return ref; @@ -116,7 +116,7 @@ namespace NSc::NUt { if (!DoParsePos(state, dst)) { return Nothing(); } - [[fallthrough]]; + [[fallthrough]]; case TDst::T_CREATE_FRONT_LREF: case TDst::T_CREATE_FRONT_CREF: case TDst::T_CREATE_FRONT_RREF: diff --git a/library/cpp/streams/bzip2/bzip2.cpp b/library/cpp/streams/bzip2/bzip2.cpp index 2288ddcb1f..bccc5c6807 100644 --- a/library/cpp/streams/bzip2/bzip2.cpp +++ b/library/cpp/streams/bzip2/bzip2.cpp @@ -43,7 +43,7 @@ public: case BZ_STREAM_END: { Clear(); Init(); - [[fallthrough]]; + [[fallthrough]]; } case BZ_OK: { diff --git a/library/cpp/terminate_handler/terminate_handler.cpp b/library/cpp/terminate_handler/terminate_handler.cpp index 61a4a28947..d7e8fbed95 100644 --- a/library/cpp/terminate_handler/terminate_handler.cpp +++ b/library/cpp/terminate_handler/terminate_handler.cpp @@ -16,10 +16,10 @@ namespace { break; case 2: Cerr << "FancyTerminateHandler called recursively" << Endl; - [[fallthrough]]; + [[fallthrough]]; default: abort(); - break; + break; } if (std::current_exception()) { diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp index c99057566e..305bc6b40f 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -492,7 +492,7 @@ private: // test could fail with zero status if it calls exit(0) in the middle. if (ForkExitedCorrectly) break; - [[fallthrough]]; + [[fallthrough]]; } case TShellCommand::SHELL_ERROR: { ythrow yexception() << "Forked test failed"; diff --git a/library/cpp/uri/parse.cpp b/library/cpp/uri/parse.cpp index 09947a5b94..1db4e008c4 100644 --- a/library/cpp/uri/parse.cpp +++ b/library/cpp/uri/parse.cpp @@ -183,7 +183,7 @@ namespace NUri { break; case TScheme::SchemeEmpty: Scheme = TScheme::SchemeUnknown; - [[fallthrough]]; + [[fallthrough]]; case TScheme::SchemeUnknown: wantCareFlags = TFeature::FeatureSchemeFlexible | TFeature::FeatureNoRelPath; diff --git a/library/cpp/yson_pull/detail/writer.h b/library/cpp/yson_pull/detail/writer.h index 5d8e6579ba..b24b994292 100644 --- a/library/cpp/yson_pull/detail/writer.h +++ b/library/cpp/yson_pull/detail/writer.h @@ -223,14 +223,14 @@ namespace NYsonPull { default: break; } - [[fallthrough]]; + [[fallthrough]]; case state::value: if (event == EEventType::BeginAttributes) { push(EEventType::BeginAttributes); next_state(); return; } - [[fallthrough]]; + [[fallthrough]]; case state::value_noattr: switch (event) { case EEventType::Scalar: |