diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
commit | 9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /tools | |
parent | 8cbc307de0221f84c80c42dcbe07d40727537e2c (diff) | |
download | ydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/archiver/main.cpp | 42 | ||||
-rw-r--r-- | tools/enum_parser/enum_parser/main.cpp | 26 | ||||
-rw-r--r-- | tools/fix_elf/patch.cpp | 4 | ||||
-rw-r--r-- | tools/ya.make | 26 |
4 files changed, 49 insertions, 49 deletions
diff --git a/tools/archiver/main.cpp b/tools/archiver/main.cpp index 29d6853196..6cda54c1ea 100644 --- a/tools/archiver/main.cpp +++ b/tools/archiver/main.cpp @@ -19,9 +19,9 @@ #include <cstring> namespace { - class TStringArrayOutput: public IOutputStream { + class TStringArrayOutput: public IOutputStream { public: - TStringArrayOutput(IOutputStream* slave, size_t stride) + TStringArrayOutput(IOutputStream* slave, size_t stride) : Slave(*slave) , Stride(stride) { @@ -46,14 +46,14 @@ namespace { } private: - IOutputStream& Slave; + IOutputStream& Slave; const size_t Stride; TString Buf; }; - class THexOutput: public IOutputStream { + class THexOutput: public IOutputStream { public: - inline THexOutput(IOutputStream* slave) + inline THexOutput(IOutputStream* slave) : Slave_(slave) { } @@ -112,11 +112,11 @@ namespace { // width in source chars static const size_t Columns = 10; ui64 Count_ = 0; - IOutputStream* Slave_ = nullptr; + IOutputStream* Slave_ = nullptr; }; - struct TYasmOutput: public IOutputStream { - inline TYasmOutput(IOutputStream* out, const TString& base) + struct TYasmOutput: public IOutputStream { + inline TYasmOutput(IOutputStream* out, const TString& base) : Out_(out) , Base_(base) { @@ -157,13 +157,13 @@ namespace { } } - IOutputStream* Out_ = nullptr; + IOutputStream* Out_ = nullptr; const TString Base_; ui64 Count_ = 0; }; struct TCOutput: public THexOutput { - inline TCOutput(IOutputStream* out, const TString& base) + inline TCOutput(IOutputStream* out, const TString& base) : THexOutput(out) , B(base) { @@ -180,8 +180,8 @@ namespace { const TString B; }; - struct TCStringOutput: public IOutputStream { - inline TCStringOutput(IOutputStream* out, const TString& base) + struct TCStringOutput: public IOutputStream { + inline TCStringOutput(IOutputStream* out, const TString& base) : O(out) , B(base) { @@ -200,7 +200,7 @@ namespace { *O << ";\nextern const unsigned int " << B << "Size = sizeof(" << B << ") / sizeof(" << B << "[0]) - 1;\n}\n"; } - IOutputStream* O = nullptr; + IOutputStream* O = nullptr; const TString B; }; @@ -276,7 +276,7 @@ namespace { }; struct TDeduplicationArchiveWriter { - TDeduplicationArchiveWriter(const TDuplicatesMap& duplicatesMap, IOutputStream* out, bool compress) + TDeduplicationArchiveWriter(const TDuplicatesMap& duplicatesMap, IOutputStream* out, bool compress) : DuplicatesMap(duplicatesMap) , Writer(out, compress) {} @@ -290,7 +290,7 @@ namespace { }; } -static inline TAutoPtr<IOutputStream> OpenOutput(const TString& url) { +static inline TAutoPtr<IOutputStream> OpenOutput(const TString& url) { if (url.empty()) { return new TBuffered<TUnbufferedFileOutput>(8192, Duplicate(1)); } else { @@ -328,14 +328,14 @@ static inline TString Fix(TString f) { static bool Quiet = false; -static inline void Append(IOutputStream& w, const TString& fname, const TString& rname) { +static inline void Append(IOutputStream& w, const TString& fname, const TString& rname) { TMappedFileInput in(fname); if (!Quiet) { Cerr << "--> " << rname << Endl; } - TransferData((IInputStream*)&in, &w); + TransferData((IInputStream*)&in, &w); } static inline void Append(TDuplicatesMap& w, const TString& fname, const TString& rname) { @@ -447,7 +447,7 @@ static void UnpackArchive(const TString& archive, const TFsPath& dir = TFsPath() } const TFsPath path(dir / fileName); path.Parent().MkDirs(); - TAutoPtr<IInputStream> in = reader.ObjectByKey(key); + TAutoPtr<IInputStream> in = reader.ObjectByKey(key); TFixedBufferFileOutput out(path); TransferData(in.Get(), &out); out.Finish(); @@ -647,9 +647,9 @@ int main(int argc, char** argv) { UnpackArchive(rec.Path, dir); } } else { - TAutoPtr<IOutputStream> outf(OpenOutput(outputf)); - IOutputStream* out = outf.Get(); - THolder<IOutputStream> hexout; + TAutoPtr<IOutputStream> outf(OpenOutput(outputf)); + IOutputStream* out = outf.Get(); + THolder<IOutputStream> hexout; if (hexdump) { hexout.Reset(new THexOutput(out)); diff --git a/tools/enum_parser/enum_parser/main.cpp b/tools/enum_parser/enum_parser/main.cpp index 24ea1a13ed..0943c69c1d 100644 --- a/tools/enum_parser/enum_parser/main.cpp +++ b/tools/enum_parser/enum_parser/main.cpp @@ -24,7 +24,7 @@ #include <util/system/fs.h> #include <util/folder/path.h> -void WriteHeader(const TString& headerName, IOutputStream& out, IOutputStream* headerOutPtr = nullptr) { +void WriteHeader(const TString& headerName, IOutputStream& out, IOutputStream* headerOutPtr = nullptr) { out << "// This file was auto-generated. Do not edit!!!\n"; out << "#include " << headerName << "\n"; out << "#include <tools/enum_parser/enum_serialization_runtime/enum_runtime.h>\n\n"; @@ -64,7 +64,7 @@ static inline TString JsonQuote(const TString& s) { /// Simplifed JSON map encoder for generic types template<typename T> -void OutKey(IOutputStream& out, const TString& key, const T& value, bool escape = true) { +void OutKey(IOutputStream& out, const TString& key, const T& value, bool escape = true) { TString quoted = ToString(value); if (escape) { quoted = JsonQuote(quoted); @@ -73,7 +73,7 @@ void OutKey(IOutputStream& out, const TString& key, const T& value, bool escape } /// Simplifed JSON map encoder for TMaybe -void OutKey(IOutputStream& out, const TString& key, const TMaybe<TString>& value) { +void OutKey(IOutputStream& out, const TString& key, const TMaybe<TString>& value) { TString quoted; if (value) { quoted = JsonQuote(ToString(*value)); @@ -85,14 +85,14 @@ void OutKey(IOutputStream& out, const TString& key, const TMaybe<TString>& value /// Simplifed JSON map encoder for bool values -void OutKey(IOutputStream& out, const TString& key, const bool& value) { +void OutKey(IOutputStream& out, const TString& key, const bool& value) { out << "\"" << key << "\": " << (value ? "true" : "false") << ",\n"; } /// Simplifed JSON map encoder for array items template<typename T> -void OutItem(IOutputStream& out, const T& value, bool escape = true) { +void OutItem(IOutputStream& out, const T& value, bool escape = true) { TString quoted = ToString(value); if (escape) { quoted = JsonQuote(quoted); @@ -134,9 +134,9 @@ static TString WrapStringBuf(const TStringBuf str) { void GenerateEnum( const TEnumParser::TEnum& en, - IOutputStream& out, - IOutputStream* jsonEnumOut = nullptr, - IOutputStream* headerOutPtr = nullptr + IOutputStream& out, + IOutputStream* jsonEnumOut = nullptr, + IOutputStream* headerOutPtr = nullptr ) { TStringStream jEnum; OpenMap(jEnum); @@ -318,7 +318,7 @@ void GenerateEnum( // outer Out out << "template<>\n"; - out << "void Out<" << name << ">(IOutputStream& os, TTypeTraits<" << name << ">::TFuncParam n) {\n"; + out << "void Out<" << name << ">(IOutputStream& os, TTypeTraits<" << name << ">::TFuncParam n) {\n"; out << " const " << nsName << "::TNameBufs& names = " << nsName << "::TNameBufs::Instance();\n"; out << " return names.Out(&os, n);\n"; out << "}\n\n"; @@ -411,12 +411,12 @@ int main(int argc, char** argv) { TVector<TString> freeArgs = res.GetFreeArgs(); TString inputFileName = freeArgs[0]; - THolder<IOutputStream> hOut; - IOutputStream* out = &Cout; + THolder<IOutputStream> hOut; + IOutputStream* out = &Cout; - THolder<IOutputStream> headerOut; + THolder<IOutputStream> headerOut; - THolder<IOutputStream> jsonOut; + THolder<IOutputStream> jsonOut; if (outputFileName) { diff --git a/tools/fix_elf/patch.cpp b/tools/fix_elf/patch.cpp index 11befd05d9..d49ebab307 100644 --- a/tools/fix_elf/patch.cpp +++ b/tools/fix_elf/patch.cpp @@ -107,7 +107,7 @@ private: TSection StrSect; }; -void Patch(const TString& path, const TString& library, IOutputStream& verboseOut) { +void Patch(const TString& path, const TString& library, IOutputStream& verboseOut) { TElf elf(path); TVerneedSection verneedSect(&elf); @@ -237,7 +237,7 @@ int main(int argc, char* argv[]) { TOptsParseResult res(&opts, argc, argv); TVector<TString> files = res.GetFreeArgs(); - IOutputStream& verboseOut = verbose ? Cout : Cnull; + IOutputStream& verboseOut = verbose ? Cout : Cnull; bool first = true; for (auto path : files) { diff --git a/tools/ya.make b/tools/ya.make index 2169613877..51a6b8b426 100644 --- a/tools/ya.make +++ b/tools/ya.make @@ -44,8 +44,8 @@ RECURSE( fml_sweeper_api frq_index_print geo - geodb_ops - geodb_ops/tests + geodb_ops + geodb_ops/tests geograph_compiler go_test_miner go_fake_xcrun @@ -65,7 +65,7 @@ RECURSE( langdiscr-test lemmas_merger_builder lemmer-test - lemmer-test/tests + lemmer-test/tests lenval_debug lua memcheck @@ -81,7 +81,7 @@ RECURSE( nehc nlp_test nodeiter_test - nodeiter_test/tests + nodeiter_test/tests normalize_requests nots oauth_token @@ -95,9 +95,9 @@ RECURSE( printlinks printphones printreqs - printreqs/tests + printreqs/tests printrichnode - printrichnode/tests + printrichnode/tests printtrie printurls printwzrd @@ -116,8 +116,8 @@ RECURSE( qlz query_marker_builder queryrectest - queryrectest/tests - queryrectest/tests/data + queryrectest/tests + queryrectest/tests/data rcgtest re_check recode @@ -157,11 +157,11 @@ RECURSE( tomaparsertest trans_str triecompiler - triecompiler/build_tool - triecompiler/lib - trie_ops - trie_ops/lib - trie_ops/tests + triecompiler/build_tool + triecompiler/lib + trie_ops + trie_ops/lib + trie_ops/tests trigram_index_print uc unpackrichtree |