aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt
diff options
context:
space:
mode:
authorrenadeen <renadeen@yandex-team.ru>2022-02-10 16:50:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:48 +0300
commit8e8d08ad14d2bf27a663f9a5ba0a058239942b62 (patch)
tree8d66190950a9076cee8b7d40d0bdb149e5afbb9b /library/cpp/yt
parente55e35630443fbd1ab23fc2734140a9e06509073 (diff)
downloadydb-8e8d08ad14d2bf27a663f9a5ba0a058239942b62.tar.gz
Restoring authorship annotation for <renadeen@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt')
-rw-r--r--library/cpp/yt/coding/varint-inl.h4
-rw-r--r--library/cpp/yt/memory/new-inl.h20
-rw-r--r--library/cpp/yt/memory/ref_counted-inl.h4
-rw-r--r--library/cpp/yt/misc/cast-inl.h4
-rw-r--r--library/cpp/yt/misc/guid-inl.h4
-rw-r--r--library/cpp/yt/misc/hash-inl.h4
-rw-r--r--library/cpp/yt/misc/variant-inl.h4
-rw-r--r--library/cpp/yt/string/enum.cpp4
-rw-r--r--library/cpp/yt/string/enum.h4
-rw-r--r--library/cpp/yt/string/format-inl.h4
10 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/yt/coding/varint-inl.h b/library/cpp/yt/coding/varint-inl.h
index f0a09e9d30..2fbfca5ce7 100644
--- a/library/cpp/yt/coding/varint-inl.h
+++ b/library/cpp/yt/coding/varint-inl.h
@@ -1,7 +1,7 @@
#ifndef VARINT_INL_H_
#error "Direct inclusion of this file is not allowed, include varint.h"
-// For the sake of sane code completion.
-#include "varint.h"
+// For the sake of sane code completion.
+#include "varint.h"
#endif
#include "zig_zag.h"
diff --git a/library/cpp/yt/memory/new-inl.h b/library/cpp/yt/memory/new-inl.h
index 0a84818516..37870ea79d 100644
--- a/library/cpp/yt/memory/new-inl.h
+++ b/library/cpp/yt/memory/new-inl.h
@@ -1,7 +1,7 @@
#ifndef NEW_INL_H_
#error "Direct inclusion of this file is not allowed, include new.h"
-// For the sake of sane code completion.
-#include "new.h"
+// For the sake of sane code completion.
+#include "new.h"
#endif
#include <library/cpp/ytalloc/api/ytalloc.h>
@@ -108,20 +108,20 @@ Y_FORCE_INLINE void CustomInitialize(Args... args)
{
Y_UNUSED(args...);
}
-
-template <class T>
-Y_FORCE_INLINE auto CustomInitialize(T* ptr) -> decltype(&T::InitializeRefCounted, void())
-{
- ptr->InitializeRefCounted();
-}
-
+
+template <class T>
+Y_FORCE_INLINE auto CustomInitialize(T* ptr) -> decltype(&T::InitializeRefCounted, void())
+{
+ ptr->InitializeRefCounted();
+}
+
template <class T, class... As>
Y_FORCE_INLINE T* NewEpilogue(void* ptr, As&& ... args)
{
try {
auto* instance = static_cast<T*>(ptr);
new (instance) T(std::forward<As>(args)...);
- CustomInitialize(instance);
+ CustomInitialize(instance);
return instance;
} catch (const std::exception& ex) {
// Do not forget to free the memory.
diff --git a/library/cpp/yt/memory/ref_counted-inl.h b/library/cpp/yt/memory/ref_counted-inl.h
index e6d64fec18..4ad706d778 100644
--- a/library/cpp/yt/memory/ref_counted-inl.h
+++ b/library/cpp/yt/memory/ref_counted-inl.h
@@ -1,7 +1,7 @@
#ifndef REF_COUNTED_INL_H_
#error "Direct inclusion of this file is not allowed, include ref_counted.h"
-// For the sake of sane code completion.
-#include "ref_counted.h"
+// For the sake of sane code completion.
+#include "ref_counted.h"
#endif
namespace NYT {
diff --git a/library/cpp/yt/misc/cast-inl.h b/library/cpp/yt/misc/cast-inl.h
index 1920b7c0b7..e7eda5d254 100644
--- a/library/cpp/yt/misc/cast-inl.h
+++ b/library/cpp/yt/misc/cast-inl.h
@@ -1,7 +1,7 @@
#ifndef CAST_INL_H_
#error "Direct inclusion of this file is not allowed, include cast.h"
-// For the sake of sane code completion.
-#include "cast.h"
+// For the sake of sane code completion.
+#include "cast.h"
#endif
#include <util/string/cast.h>
diff --git a/library/cpp/yt/misc/guid-inl.h b/library/cpp/yt/misc/guid-inl.h
index 2d94b5701b..cee708be0a 100644
--- a/library/cpp/yt/misc/guid-inl.h
+++ b/library/cpp/yt/misc/guid-inl.h
@@ -1,7 +1,7 @@
#ifndef GUID_INL_H_
#error "Direct inclusion of this file is not allowed, include guid.h"
-// For the sake of sane code completion.
-#include "guid.h"
+// For the sake of sane code completion.
+#include "guid.h"
#endif
namespace NYT {
diff --git a/library/cpp/yt/misc/hash-inl.h b/library/cpp/yt/misc/hash-inl.h
index 46eeefe620..3917050e9d 100644
--- a/library/cpp/yt/misc/hash-inl.h
+++ b/library/cpp/yt/misc/hash-inl.h
@@ -1,7 +1,7 @@
#ifndef HASH_INL_H_
#error "Direct inclusion of this file is not allowed, include hash.h"
-// For the sake of sane code completion.
-#include "hash.h"
+// For the sake of sane code completion.
+#include "hash.h"
#endif
namespace NYT {
diff --git a/library/cpp/yt/misc/variant-inl.h b/library/cpp/yt/misc/variant-inl.h
index fb7d98d4be..a48ca5d1b9 100644
--- a/library/cpp/yt/misc/variant-inl.h
+++ b/library/cpp/yt/misc/variant-inl.h
@@ -1,7 +1,7 @@
#ifndef VARIANT_INL_H_
#error "Direct inclusion of this file is not allowed, include variant.h"
-// For the sake of sane code completion.
-#include "variant.h"
+// For the sake of sane code completion.
+#include "variant.h"
#endif
#include <type_traits>
diff --git a/library/cpp/yt/string/enum.cpp b/library/cpp/yt/string/enum.cpp
index 7cb8e5c6b6..8a91c384ea 100644
--- a/library/cpp/yt/string/enum.cpp
+++ b/library/cpp/yt/string/enum.cpp
@@ -6,7 +6,7 @@ namespace NYT {
////////////////////////////////////////////////////////////////////////////////
-TString DecodeEnumValue(TStringBuf value)
+TString DecodeEnumValue(TStringBuf value)
{
auto camelValue = UnderscoreCaseToCamelCase(value);
auto underscoreValue = CamelCaseToUnderscoreCase(camelValue);
@@ -18,7 +18,7 @@ TString DecodeEnumValue(TStringBuf value)
return camelValue;
}
-TString EncodeEnumValue(TStringBuf value)
+TString EncodeEnumValue(TStringBuf value)
{
return CamelCaseToUnderscoreCase(value);
}
diff --git a/library/cpp/yt/string/enum.h b/library/cpp/yt/string/enum.h
index 10dc02610f..eccb971524 100644
--- a/library/cpp/yt/string/enum.h
+++ b/library/cpp/yt/string/enum.h
@@ -10,8 +10,8 @@ namespace NYT {
////////////////////////////////////////////////////////////////////////////////
-TString DecodeEnumValue(TStringBuf value);
-TString EncodeEnumValue(TStringBuf value);
+TString DecodeEnumValue(TStringBuf value);
+TString EncodeEnumValue(TStringBuf value);
template <class T>
T ParseEnum(TStringBuf value);
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h
index 5484d4a216..02a24d0692 100644
--- a/library/cpp/yt/string/format-inl.h
+++ b/library/cpp/yt/string/format-inl.h
@@ -1,7 +1,7 @@
#ifndef FORMAT_INL_H_
#error "Direct inclusion of this file is not allowed, include format.h"
-// For the sake of sane code completion.
-#include "format.h"
+// For the sake of sane code completion.
+#include "format.h"
#endif
#include "enum.h"