diff options
| author | danlark <[email protected]> | 2022-02-10 16:46:08 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:08 +0300 |
| commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
| tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /tools/enum_parser | |
| parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'tools/enum_parser')
| -rw-r--r-- | tools/enum_parser/enum_parser/main.cpp | 4 | ||||
| -rw-r--r-- | tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp | 2 |
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 0943c69c1da..f851579ffbd 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 73d38b396a9..30cd077c84f 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, '\''); |
