diff options
author | grand <grand@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:06 +0300 |
commit | 7eb3862cccdb866e7e739123c8024ccec628bb62 (patch) | |
tree | 5ce974787810a396bb1c1cca605feef8f9e85679 /library/cpp | |
parent | 13dbd0acb78595551b843005d6bd021bdc1a859b (diff) | |
download | ydb-7eb3862cccdb866e7e739123c8024ccec628bb62.tar.gz |
Restoring authorship annotation for <grand@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/cgiparam/cgiparam.cpp | 10 | ||||
-rw-r--r-- | library/cpp/cgiparam/cgiparam.h | 4 | ||||
-rw-r--r-- | library/cpp/cgiparam/cgiparam_ut.cpp | 2 | ||||
-rw-r--r-- | library/cpp/containers/comptrie/comptrie_ut.cpp | 2 | ||||
-rw-r--r-- | library/cpp/containers/sorted_vector/sorted_vector.h | 28 | ||||
-rw-r--r-- | library/cpp/coroutine/ya.make | 2 | ||||
-rw-r--r-- | library/cpp/dbg_output/ut/dbg_output_ut.cpp | 2 | ||||
-rw-r--r-- | library/cpp/deprecated/split/delim_string_iter_ut.cpp | 6 | ||||
-rw-r--r-- | library/cpp/deprecated/split/split_iterator_ut.cpp | 8 | ||||
-rw-r--r-- | library/cpp/messagebus/rain_check/core/simple.h | 2 | ||||
-rw-r--r-- | library/cpp/messagebus/rain_check/core/spawn.h | 6 | ||||
-rw-r--r-- | library/cpp/messagebus/rain_check/core/task.h | 2 | ||||
-rw-r--r-- | library/cpp/packedtypes/zigzag.h | 6 |
13 files changed, 40 insertions, 40 deletions
diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp index f3277b8e4b..995ccfcf49 100644 --- a/library/cpp/cgiparam/cgiparam.cpp +++ b/library/cpp/cgiparam/cgiparam.cpp @@ -6,11 +6,11 @@ #include <util/generic/singleton.h> TCgiParameters::TCgiParameters(std::initializer_list<std::pair<TString, TString>> il) { - for (const auto& item : il) { - insert(item); - } -} - + for (const auto& item : il) { + insert(item); + } +} + const TString& TCgiParameters::Get(const TStringBuf name, size_t numOfValue) const noexcept { const auto it = Find(name, numOfValue); diff --git a/library/cpp/cgiparam/cgiparam.h b/library/cpp/cgiparam/cgiparam.h index 87d1ab0ad4..afb7ed3bb7 100644 --- a/library/cpp/cgiparam/cgiparam.h +++ b/library/cpp/cgiparam/cgiparam.h @@ -7,7 +7,7 @@ #include <util/generic/strbuf.h> #include <util/generic/string.h> -#include <initializer_list> +#include <initializer_list> struct TStringLess { template <class T1, class T2> @@ -25,7 +25,7 @@ public: } TCgiParameters(std::initializer_list<std::pair<TString, TString>> il); - + void Flush() { erase(begin(), end()); } diff --git a/library/cpp/cgiparam/cgiparam_ut.cpp b/library/cpp/cgiparam/cgiparam_ut.cpp index a562342084..359e387776 100644 --- a/library/cpp/cgiparam/cgiparam_ut.cpp +++ b/library/cpp/cgiparam/cgiparam_ut.cpp @@ -204,7 +204,7 @@ Y_UNIT_TEST_SUITE(TCgiParametersTest) { } Y_UNIT_TEST(TestContInit) { - TCgiParameters c = {std::make_pair("a", "a1"), std::make_pair("b", "b1"), std::make_pair("a", "a2")}; + TCgiParameters c = {std::make_pair("a", "a1"), std::make_pair("b", "b1"), std::make_pair("a", "a2")}; UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("a"), 2u); UNIT_ASSERT_VALUES_EQUAL(c.NumOfValues("b"), 1u); diff --git a/library/cpp/containers/comptrie/comptrie_ut.cpp b/library/cpp/containers/comptrie/comptrie_ut.cpp index 74bee09b5d..a133a6faac 100644 --- a/library/cpp/containers/comptrie/comptrie_ut.cpp +++ b/library/cpp/containers/comptrie/comptrie_ut.cpp @@ -1039,7 +1039,7 @@ public: typedef T TData; static TData Data(const TString&) { - return RandomNumber<std::make_unsigned_t<T>>(); + return RandomNumber<std::make_unsigned_t<T>>(); } }; diff --git a/library/cpp/containers/sorted_vector/sorted_vector.h b/library/cpp/containers/sorted_vector/sorted_vector.h index 123539af9e..cf349875e9 100644 --- a/library/cpp/containers/sorted_vector/sorted_vector.h +++ b/library/cpp/containers/sorted_vector/sorted_vector.h @@ -8,8 +8,8 @@ #include <util/ysaveload.h> #include <utility> -#include <initializer_list> - +#include <initializer_list> + namespace NSorted { namespace NPrivate { template <class TPredicate> @@ -80,18 +80,18 @@ namespace NSorted { { } - inline TSortedVector(std::initializer_list<value_type> il) - : TBase(il) - { - Sort(); - } - - inline TSortedVector(std::initializer_list<value_type> il, const typename TBase::allocator_type& a) - : TBase(il, a) - { - Sort(); - } - + inline TSortedVector(std::initializer_list<value_type> il) + : TBase(il) + { + Sort(); + } + + inline TSortedVector(std::initializer_list<value_type> il, const typename TBase::allocator_type& a) + : TBase(il, a) + { + Sort(); + } + template <class TIter> inline TSortedVector(TIter first, TIter last) : TBase(first, last) diff --git a/library/cpp/coroutine/ya.make b/library/cpp/coroutine/ya.make index 34e30f2b25..90d03c5cbc 100644 --- a/library/cpp/coroutine/ya.make +++ b/library/cpp/coroutine/ya.make @@ -6,6 +6,6 @@ RECURSE( engine/stack/ut listener test - ut + ut util ) diff --git a/library/cpp/dbg_output/ut/dbg_output_ut.cpp b/library/cpp/dbg_output/ut/dbg_output_ut.cpp index 7b285c84cb..dfa65c2d8e 100644 --- a/library/cpp/dbg_output/ut/dbg_output_ut.cpp +++ b/library/cpp/dbg_output/ut/dbg_output_ut.cpp @@ -4,7 +4,7 @@ #include <util/stream/str.h> #include <util/string/builder.h> #include <util/string/escape.h> -#include <util/generic/map.h> +#include <util/generic/map.h> namespace { struct TX { diff --git a/library/cpp/deprecated/split/delim_string_iter_ut.cpp b/library/cpp/deprecated/split/delim_string_iter_ut.cpp index 18a8b2a160..997d5f32f9 100644 --- a/library/cpp/deprecated/split/delim_string_iter_ut.cpp +++ b/library/cpp/deprecated/split/delim_string_iter_ut.cpp @@ -19,16 +19,16 @@ static void AssertStringSplit(const TString& str, const TString& delim, const TV Y_UNIT_TEST_SUITE(TDelimStrokaIterTestSuite) { Y_UNIT_TEST(SingleCharacterAsDelimiter) { AssertStringSplit( - "Hello words!", " ", {"Hello", "words!"}); + "Hello words!", " ", {"Hello", "words!"}); } Y_UNIT_TEST(MultipleCharactersAsDelimiter) { AssertStringSplit( - "0, 1, 1, 2, 3, 5, 8, 13, 21, 34", "1, ", {"0, ", "", "2, 3, 5, 8, 13, 2", "34"}); + "0, 1, 1, 2, 3, 5, 8, 13, 21, 34", "1, ", {"0, ", "", "2, 3, 5, 8, 13, 2", "34"}); } Y_UNIT_TEST(NoDelimitersPresent) { - AssertStringSplit("This string could be yours", "\t", {"This string could be yours"}); + AssertStringSplit("This string could be yours", "\t", {"This string could be yours"}); } Y_UNIT_TEST(Cdr) { diff --git a/library/cpp/deprecated/split/split_iterator_ut.cpp b/library/cpp/deprecated/split/split_iterator_ut.cpp index be5069c4be..717c8ed505 100644 --- a/library/cpp/deprecated/split/split_iterator_ut.cpp +++ b/library/cpp/deprecated/split/split_iterator_ut.cpp @@ -38,7 +38,7 @@ void TSplitIteratorTest::TestDelimitersSplit() { TDelimitersSplit split(s, delims); TSplitTokens tokens; Split(split, &tokens); - TSplitTokens pattern = {"1", "3", "45"}; + TSplitTokens pattern = {"1", "3", "45"}; UNIT_ASSERT(tokens == pattern); } { @@ -47,7 +47,7 @@ void TSplitIteratorTest::TestDelimitersSplit() { TDelimitersSplit split(s, delims); TSplitTokens tokens; Split(split, &tokens); - TSplitTokens pattern = {}; + TSplitTokens pattern = {}; UNIT_ASSERT(tokens == pattern); } } @@ -59,7 +59,7 @@ void TSplitIteratorTest::TestDelimitersStrictSplit() { TDelimitersStrictSplit split(s, delims); TSplitTokens tokens; Split(split, &tokens); - TSplitTokens pattern = {"grp", "2"}; + TSplitTokens pattern = {"grp", "2"}; UNIT_ASSERT(tokens == pattern); } @@ -69,7 +69,7 @@ void TSplitIteratorTest::TestDelimitersStrictSplit() { TDelimitersStrictSplit split(s, delims); TSplitTokens tokens; Split(split, &tokens); - TSplitTokens pattern = {"", "grp", "2", ""}; + TSplitTokens pattern = {"", "grp", "2", ""}; UNIT_ASSERT(tokens == pattern); } } diff --git a/library/cpp/messagebus/rain_check/core/simple.h b/library/cpp/messagebus/rain_check/core/simple.h index 20e1bf19f5..8ebc813fbb 100644 --- a/library/cpp/messagebus/rain_check/core/simple.h +++ b/library/cpp/messagebus/rain_check/core/simple.h @@ -27,7 +27,7 @@ namespace NRainCheck { TContinueFunc(TContinueFunc (TTask::*func)()) : Func((TFunc)func) { - static_assert((std::is_base_of<ISimpleTask, TTask>::value), "expect (std::is_base_of<ISimpleTask, TTask>::value)"); + static_assert((std::is_base_of<ISimpleTask, TTask>::value), "expect (std::is_base_of<ISimpleTask, TTask>::value)"); } bool operator!() const { diff --git a/library/cpp/messagebus/rain_check/core/spawn.h b/library/cpp/messagebus/rain_check/core/spawn.h index f2b146bf29..4b847a4854 100644 --- a/library/cpp/messagebus/rain_check/core/spawn.h +++ b/library/cpp/messagebus/rain_check/core/spawn.h @@ -10,7 +10,7 @@ namespace NRainCheck { template <typename TTask, typename ITask, typename TRunner, typename TEnv, typename TParam> TIntrusivePtr<TRunner> SpawnTaskWithRunner(TEnv* env, TParam param1, ISubtaskListener* subtaskListener) { - static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); + static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); TIntrusivePtr<TRunner> task(new TRunner(env, subtaskListener, new TTask(env, param1))); NPrivate::SpawnTaskImpl(task.Get()); return task; @@ -18,7 +18,7 @@ namespace NRainCheck { template <typename TTask, typename ITask, typename TRunner, typename TEnv> void SpawnSubtaskWithRunner(TEnv* env, TSubtaskCompletion* completion) { - static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); + static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); TTaskRunnerBase* current = TTaskRunnerBase::CurrentTask(); completion->SetRunning(current); NPrivate::SpawnTaskImpl(new TRunner(env, completion, new TTask(env))); @@ -26,7 +26,7 @@ namespace NRainCheck { template <typename TTask, typename ITask, typename TRunner, typename TEnv, typename TParam> void SpawnSubtaskWithRunner(TEnv* env, TSubtaskCompletion* completion, TParam param) { - static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); + static_assert((std::is_base_of<ITask, TTask>::value), "expect (std::is_base_of<ITask, TTask>::value)"); TTaskRunnerBase* current = TTaskRunnerBase::CurrentTask(); completion->SetRunning(current); NPrivate::SpawnTaskImpl(new TRunner(env, completion, new TTask(env, param))); diff --git a/library/cpp/messagebus/rain_check/core/task.h b/library/cpp/messagebus/rain_check/core/task.h index 7d8778bcda..3ae4551a0d 100644 --- a/library/cpp/messagebus/rain_check/core/task.h +++ b/library/cpp/messagebus/rain_check/core/task.h @@ -45,7 +45,7 @@ namespace NRainCheck { TSubtaskCompletionFunc(void (TTask::*func)(TSubtaskCompletion*)) : Func((TFunc)func) { - static_assert((std::is_base_of<ITaskBase, TTask>::value), "expect (std::is_base_of<ITaskBase, TTask>::value)"); + static_assert((std::is_base_of<ITaskBase, TTask>::value), "expect (std::is_base_of<ITaskBase, TTask>::value)"); } bool operator!() const { diff --git a/library/cpp/packedtypes/zigzag.h b/library/cpp/packedtypes/zigzag.h index 548403f838..08854ea48e 100644 --- a/library/cpp/packedtypes/zigzag.h +++ b/library/cpp/packedtypes/zigzag.h @@ -8,14 +8,14 @@ //! See https://developers.google.com/protocol-buffers/docs/encoding#types for details. template <typename TSignedInt> -inline auto ZigZagEncode(TSignedInt n) -> std::make_unsigned_t<TSignedInt> { +inline auto ZigZagEncode(TSignedInt n) -> std::make_unsigned_t<TSignedInt> { static_assert(std::is_signed<TSignedInt>::value && std::is_integral<TSignedInt>::value, "Expected signed integral type."); auto un = static_cast<std::make_unsigned_t<TSignedInt>>(n); return (un << 1) ^ (n >> (CHAR_BIT * sizeof(TSignedInt) - 1)); } template <typename TUnsignedInt> -inline auto ZigZagDecode(TUnsignedInt n) -> std::make_signed_t<TUnsignedInt> { +inline auto ZigZagDecode(TUnsignedInt n) -> std::make_signed_t<TUnsignedInt> { static_assert(std::is_unsigned<TUnsignedInt>::value, "Expected unsigned integral type."); - return (n >> 1) ^ -static_cast<std::make_signed_t<TUnsignedInt>>(n & 1); + return (n >> 1) ^ -static_cast<std::make_signed_t<TUnsignedInt>>(n & 1); } |