Browse Source

Restoring authorship annotation for <vlmarkov@yandex-team.ru>. Commit 2 of 2.

vlmarkov 3 years ago
parent
commit
dbd3185956

+ 2 - 2
contrib/restricted/thrift/ya.make

@@ -13,8 +13,8 @@ OWNER(
 
 NO_UTIL()
 
-NO_COMPILER_WARNINGS() 
- 
+NO_COMPILER_WARNINGS()
+
 ADDINCL(
     GLOBAL contrib/restricted/thrift
 )

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

+ 1 - 1
library/cpp/actors/http/http.h

@@ -505,7 +505,7 @@ public:
         switch (Stage) {
         case ERenderStage::Header:
             FinishHeader();
-            break; 
+            break;
         default:
             break;
         }

+ 5 - 5
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);

+ 2 - 2
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:

+ 2 - 2
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;

+ 1 - 1
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();
         }

+ 2 - 2
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;

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

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

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