aboutsummaryrefslogtreecommitdiffstats
path: root/tools/enum_parser
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /tools/enum_parser
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'tools/enum_parser')
-rw-r--r--tools/enum_parser/enum_parser/main.cpp4
-rw-r--r--tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/enum_parser/enum_parser/main.cpp b/tools/enum_parser/enum_parser/main.cpp
index 0943c69c1d..f851579ffb 100644
--- a/tools/enum_parser/enum_parser/main.cpp
+++ b/tools/enum_parser/enum_parser/main.cpp
@@ -104,7 +104,7 @@ void OutItem(IOutputStream& out, const T& value, bool escape = true) {
static inline void FinishItems(TStringStream& out) {
TString& s = out.Str();
if (s.EndsWith(",\n")) {
- s.remove(s.size() - 2, 2);
+ s.remove(s.size() - 2, 2);
}
if (s.EndsWith(",")) {
s.pop_back();
@@ -141,7 +141,7 @@ void GenerateEnum(
TStringStream jEnum;
OpenMap(jEnum);
- size_t count = en.Items.size();
+ size_t count = en.Items.size();
OutKey(jEnum, "count", count);
const TString name = TEnumParser::ScopeStr(en.Scope) + en.CppName;
OutKey(jEnum, "full_name", name);
diff --git a/tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp b/tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp
index 73d38b396a..30cd077c84 100644
--- a/tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp
+++ b/tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp
@@ -76,7 +76,7 @@ namespace NEnumSerializationRuntime {
AllValues.reserve(Names.size());
for (const auto& it : Names) {
- if (!AllNames.empty()) {
+ if (!AllNames.empty()) {
AllNames += ", ";
}
AllNames += TString::Join('\'', it.second, '\'');