aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/colorizer
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/colorizer
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/colorizer')
-rw-r--r--library/cpp/colorizer/colors.cpp6
-rw-r--r--library/cpp/colorizer/colors.h12
-rw-r--r--library/cpp/colorizer/output.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/colorizer/colors.cpp b/library/cpp/colorizer/colors.cpp
index 918cd57085..decc5c9847 100644
--- a/library/cpp/colorizer/colors.cpp
+++ b/library/cpp/colorizer/colors.cpp
@@ -130,9 +130,9 @@ namespace {
return "\033[0m\033[2;36m";
case DARK_WHITE:
return "\033[0m\033[2;37m";
-
- case INVALID:
- default:
+
+ case INVALID:
+ default:
return "";
}
}
diff --git a/library/cpp/colorizer/colors.h b/library/cpp/colorizer/colors.h
index 8b64f4d90b..474a918994 100644
--- a/library/cpp/colorizer/colors.h
+++ b/library/cpp/colorizer/colors.h
@@ -2,10 +2,10 @@
#include "fwd.h"
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/strbuf.h>
-#include <cstdio>
+#include <cstdio>
namespace NColorizer {
/**
@@ -192,19 +192,19 @@ namespace NColorizer {
TStringBuf YellowColor() const noexcept;
TStringBuf WhiteColor() const noexcept;
- inline bool IsTTY() const noexcept {
+ inline bool IsTTY() const noexcept {
return IsTTY_;
}
- inline void SetIsTTY(bool value) noexcept {
+ inline void SetIsTTY(bool value) noexcept {
IsTTY_ = value;
}
- inline void Enable() noexcept {
+ inline void Enable() noexcept {
SetIsTTY(true);
}
- inline void Disable() noexcept {
+ inline void Disable() noexcept {
SetIsTTY(false);
}
diff --git a/library/cpp/colorizer/output.h b/library/cpp/colorizer/output.h
index 0644daed85..99afbd3427 100644
--- a/library/cpp/colorizer/output.h
+++ b/library/cpp/colorizer/output.h
@@ -12,7 +12,7 @@ namespace NColorizer {
const TColors* C;
TColorFunc F;
- inline TColorHandle(const TColors* c, TColorFunc f) noexcept
+ inline TColorHandle(const TColors* c, TColorFunc f) noexcept
: C(c)
, F(f)
{