aboutsummaryrefslogtreecommitdiffstats
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
commit000a0e5c3271c420cca3cdbe23f3c008f514bd90 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent8e8d08ad14d2bf27a663f9a5ba0a058239942b62 (diff)
downloadydb-000a0e5c3271c420cca3cdbe23f3c008f514bd90.tar.gz
Restoring authorship annotation for <renadeen@yandex-team.ru>. Commit 2 of 2.
-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 2fbfca5ce7..f0a09e9d30 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 37870ea79d..0a84818516 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 4ad706d778..e6d64fec18 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 e7eda5d254..1920b7c0b7 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 cee708be0a..2d94b5701b 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 3917050e9d..46eeefe620 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 a48ca5d1b9..fb7d98d4be 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 8a91c384ea..7cb8e5c6b6 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 eccb971524..10dc02610f 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 02a24d0692..5484d4a216 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"