aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/colorizer
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/colorizer
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/colorizer')
-rw-r--r--library/cpp/colorizer/colors.cpp2
-rw-r--r--library/cpp/colorizer/colors.h2
-rw-r--r--library/cpp/colorizer/fwd.h4
-rw-r--r--library/cpp/colorizer/output.cpp2
-rw-r--r--library/cpp/colorizer/ut/colorizer_ut.cpp6
5 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/colorizer/colors.cpp b/library/cpp/colorizer/colors.cpp
index decc5c9847..004adeee6e 100644
--- a/library/cpp/colorizer/colors.cpp
+++ b/library/cpp/colorizer/colors.cpp
@@ -452,7 +452,7 @@ TColors& NColorizer::StdOut() {
return *Singleton<TStdOutColors>();
}
-TColors& NColorizer::AutoColors(IOutputStream& os) {
+TColors& NColorizer::AutoColors(IOutputStream& os) {
if (&os == &Cerr) {
return StdErr();
}
diff --git a/library/cpp/colorizer/colors.h b/library/cpp/colorizer/colors.h
index 474a918994..690090b7d3 100644
--- a/library/cpp/colorizer/colors.h
+++ b/library/cpp/colorizer/colors.h
@@ -218,7 +218,7 @@ namespace NColorizer {
/// Choose `TColors` depending on output stream. If passed stream is stderr/stdout, return a corresponding
/// singletone. Otherwise, return a disabled singletone (which you can, but should *not* enable).
- TColors& AutoColors(IOutputStream& os);
+ TColors& AutoColors(IOutputStream& os);
/// Calculate total length of all ANSI escape codes in the text.
size_t TotalAnsiEscapeCodeLen(TStringBuf text);
diff --git a/library/cpp/colorizer/fwd.h b/library/cpp/colorizer/fwd.h
index d71efdc053..f07ed5dda2 100644
--- a/library/cpp/colorizer/fwd.h
+++ b/library/cpp/colorizer/fwd.h
@@ -1,11 +1,11 @@
#pragma once
-class IOutputStream;
+class IOutputStream;
namespace NColorizer {
class TColors;
TColors& StdErr();
TColors& StdOut();
- TColors& AutoColors(IOutputStream&);
+ TColors& AutoColors(IOutputStream&);
}
diff --git a/library/cpp/colorizer/output.cpp b/library/cpp/colorizer/output.cpp
index 66a5626675..70698d66f0 100644
--- a/library/cpp/colorizer/output.cpp
+++ b/library/cpp/colorizer/output.cpp
@@ -5,6 +5,6 @@
using namespace NColorizer;
template <>
-void Out<TColorHandle>(IOutputStream& o, const TColorHandle& h) {
+void Out<TColorHandle>(IOutputStream& o, const TColorHandle& h) {
o << (*(h.C).*h.F)();
}
diff --git a/library/cpp/colorizer/ut/colorizer_ut.cpp b/library/cpp/colorizer/ut/colorizer_ut.cpp
index 20341440af..ec270d605e 100644
--- a/library/cpp/colorizer/ut/colorizer_ut.cpp
+++ b/library/cpp/colorizer/ut/colorizer_ut.cpp
@@ -5,8 +5,8 @@
#include <util/string/escape.h>
-Y_UNIT_TEST_SUITE(ColorizerTest) {
- Y_UNIT_TEST(BasicTest) {
+Y_UNIT_TEST_SUITE(ColorizerTest) {
+ Y_UNIT_TEST(BasicTest) {
NColorizer::TColors colors;
colors.Enable();
UNIT_ASSERT_STRINGS_EQUAL(EscapeC(colors.BlueColor()), "\\x1B[22;34m");
@@ -15,7 +15,7 @@ Y_UNIT_TEST_SUITE(ColorizerTest) {
UNIT_ASSERT(colors.BlueColor().Empty());
}
- Y_UNIT_TEST(ResettingTest) {
+ Y_UNIT_TEST(ResettingTest) {
NColorizer::TColors colors;
colors.Enable();
// 22;39, not 0, should be used so that only foreground changes