aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/dbg_output
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/dbg_output
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/dbg_output')
-rw-r--r--library/cpp/dbg_output/dump.h4
-rw-r--r--library/cpp/dbg_output/dumpers.h28
-rw-r--r--library/cpp/dbg_output/engine.cpp2
-rw-r--r--library/cpp/dbg_output/engine.h6
-rw-r--r--library/cpp/dbg_output/ut/dbg_output_ut.cpp8
5 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/dbg_output/dump.h b/library/cpp/dbg_output/dump.h
index c7efa105ee..d80209c4d0 100644
--- a/library/cpp/dbg_output/dump.h
+++ b/library/cpp/dbg_output/dump.h
@@ -59,7 +59,7 @@ namespace NPrivate {
}
}
- THashSet<size_t> Visited;
+ THashSet<size_t> Visited;
};
};
@@ -77,7 +77,7 @@ namespace NPrivate {
d << *T_;
}
- inline TDbgDump& SetIndent(bool v) noexcept {
+ inline TDbgDump& SetIndent(bool v) noexcept {
Indent = v;
return *this;
diff --git a/library/cpp/dbg_output/dumpers.h b/library/cpp/dbg_output/dumpers.h
index 4868e97da0..d37b1fe652 100644
--- a/library/cpp/dbg_output/dumpers.h
+++ b/library/cpp/dbg_output/dumpers.h
@@ -4,7 +4,7 @@
#include <util/generic/fwd.h>
#include <util/generic/strbuf.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
//smart pointers
template <class T, class D>
@@ -91,7 +91,7 @@ struct TDumper<std::pair<A, B>> {
//sequences
template <class T, class A>
-struct TDumper<TVector<T, A>>: public TSeqDumper {
+struct TDumper<TVector<T, A>>: public TSeqDumper {
};
template <class T, class A>
@@ -107,49 +107,49 @@ struct TDumper<std::array<T, N>>: public TSeqDumper {
};
template <class T, class A>
-struct TDumper<TDeque<T, A>>: public TSeqDumper {
+struct TDumper<TDeque<T, A>>: public TSeqDumper {
};
template <class T, class A>
-struct TDumper<TList<T, A>>: public TSeqDumper {
+struct TDumper<TList<T, A>>: public TSeqDumper {
};
//associatives
template <class K, class V, class P, class A>
-struct TDumper<TMap<K, V, P, A>>: public TAssocDumper {
+struct TDumper<TMap<K, V, P, A>>: public TAssocDumper {
};
template <class K, class V, class P, class A>
-struct TDumper<TMultiMap<K, V, P, A>>: public TAssocDumper {
+struct TDumper<TMultiMap<K, V, P, A>>: public TAssocDumper {
};
template <class T, class P, class A>
-struct TDumper<TSet<T, P, A>>: public TAssocDumper {
+struct TDumper<TSet<T, P, A>>: public TAssocDumper {
};
template <class T, class P, class A>
-struct TDumper<TMultiSet<T, P, A>>: public TAssocDumper {
+struct TDumper<TMultiSet<T, P, A>>: public TAssocDumper {
};
template <class K, class V, class H, class P, class A>
-struct TDumper<THashMap<K, V, H, P, A>>: public TAssocDumper {
+struct TDumper<THashMap<K, V, H, P, A>>: public TAssocDumper {
};
template <class K, class V, class H, class P, class A>
-struct TDumper<THashMultiMap<K, V, H, P, A>>: public TAssocDumper {
+struct TDumper<THashMultiMap<K, V, H, P, A>>: public TAssocDumper {
};
template <class T, class H, class P, class A>
-struct TDumper<THashSet<T, H, P, A>>: public TAssocDumper {
+struct TDumper<THashSet<T, H, P, A>>: public TAssocDumper {
};
template <class T, class H, class P, class A>
-struct TDumper<THashMultiSet<T, H, P, A>>: public TAssocDumper {
+struct TDumper<THashMultiSet<T, H, P, A>>: public TAssocDumper {
};
//strings
template <>
-struct TDumper<TString>: public TStrDumper {
+struct TDumper<TString>: public TStrDumper {
};
template <>
@@ -157,7 +157,7 @@ struct TDumper<const char*>: public TStrDumper {
};
template <>
-struct TDumper<TUtf16String>: public TStrDumper {
+struct TDumper<TUtf16String>: public TStrDumper {
};
template <>
diff --git a/library/cpp/dbg_output/engine.cpp b/library/cpp/dbg_output/engine.cpp
index dcb9f02522..2057b41436 100644
--- a/library/cpp/dbg_output/engine.cpp
+++ b/library/cpp/dbg_output/engine.cpp
@@ -9,7 +9,7 @@
DBGDUMP_INLINE_IF_INCLUDED void TDumpBase::String(const TStringBuf& s) {
if (s) {
- Raw(TString(s).Quote());
+ Raw(TString(s).Quote());
} else {
Raw("(empty)");
}
diff --git a/library/cpp/dbg_output/engine.h b/library/cpp/dbg_output/engine.h
index f13c728c39..a0e9f1c5ad 100644
--- a/library/cpp/dbg_output/engine.h
+++ b/library/cpp/dbg_output/engine.h
@@ -62,7 +62,7 @@ struct TIndentScope {
++(D->IndentLevel);
}
- inline ~TIndentScope() {
+ inline ~TIndentScope() {
--(D->IndentLevel);
}
@@ -80,7 +80,7 @@ static inline TRawLiteral<TChar> DumpRaw(const TBasicStringBuf<TChar>& s) noexce
}
template <class TChar>
-static inline TRawLiteral<TChar> DumpRaw(const TChar* s) noexcept {
+static inline TRawLiteral<TChar> DumpRaw(const TChar* s) noexcept {
return {s};
}
@@ -95,7 +95,7 @@ struct TDumper<TRawLiteral<C>> {
struct TIndentNewLine {
};
-static inline TIndentNewLine IndentNewLine() noexcept {
+static inline TIndentNewLine IndentNewLine() noexcept {
return {};
}
diff --git a/library/cpp/dbg_output/ut/dbg_output_ut.cpp b/library/cpp/dbg_output/ut/dbg_output_ut.cpp
index 7b285c84cb..45a9512040 100644
--- a/library/cpp/dbg_output/ut/dbg_output_ut.cpp
+++ b/library/cpp/dbg_output/ut/dbg_output_ut.cpp
@@ -34,14 +34,14 @@ DEFINE_DUMPER(TMyNS::TMyStruct, A, B)
Y_UNIT_TEST_SUITE(TContainerPrintersTest) {
Y_UNIT_TEST(TestVectorInt) {
TStringStream out;
- out << DbgDump(TVector<int>({1, 2, 3, 4, 5}));
+ out << DbgDump(TVector<int>({1, 2, 3, 4, 5}));
UNIT_ASSERT_STRINGS_EQUAL(out.Str(), "[1, 2, 3, 4, 5]");
}
Y_UNIT_TEST(TestMapCharToCharArray) {
TStringStream out;
- TMap<char, const char*> m;
+ TMap<char, const char*> m;
m['a'] = "SMALL LETTER A";
m['b'] = nullptr;
@@ -53,7 +53,7 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) {
Y_UNIT_TEST(TestVectorOfVectors) {
TStringStream out;
- TVector<TVector<wchar16>> vec(2);
+ TVector<TVector<wchar16>> vec(2);
vec[0].push_back(0);
vec[1] = {wchar16('a')};
out << DbgDump(vec);
@@ -78,7 +78,7 @@ Y_UNIT_TEST_SUITE(TContainerPrintersTest) {
}
Y_UNIT_TEST(TestColors) {
- using TComplex = TMap<TString, TMap<int, char>>;
+ using TComplex = TMap<TString, TMap<int, char>>;
TComplex test;
test["a"][1] = '7';
test["b"][2] = '6';