diff options
| author | Nikita Slyusarev <[email protected]> | 2022-02-10 16:46:52 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:52 +0300 |
| commit | cd77cecfc03a3eaf87816af28a33067c4f0cdb59 (patch) | |
| tree | 1308e0bae862d52e0020d881fe758080437fe389 /tools/enum_parser | |
| parent | cdae02d225fb5b3afbb28990e79a7ac6c9125327 (diff) | |
Restoring authorship annotation for Nikita Slyusarev <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'tools/enum_parser')
| -rw-r--r-- | tools/enum_parser/enum_parser/main.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/enum_parser/enum_parser/main.cpp b/tools/enum_parser/enum_parser/main.cpp index 0943c69c1da..f695db5f558 100644 --- a/tools/enum_parser/enum_parser/main.cpp +++ b/tools/enum_parser/enum_parser/main.cpp @@ -26,7 +26,7 @@ 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 " << headerName << "\n"; out << "#include <tools/enum_parser/enum_serialization_runtime/enum_runtime.h>\n\n"; out << "#include <tools/enum_parser/enum_parser/stdlib_deps.h>\n\n"; out << "#include <util/generic/typetraits.h>\n"; @@ -392,11 +392,11 @@ int main(int argc, char** argv) { "Generate appropriate header to specified file.\n" "Works only if output file specified." ); - opts.AddLongOption("include-path").OptionalArgument("<header-path>").StoreResult(&includePath) - .Help( - "Include input header using this path in angle brackets.\n" - "When not set, header basename is used in double quotes." - ); + opts.AddLongOption("include-path").OptionalArgument("<header-path>").StoreResult(&includePath) + .Help( + "Include input header using this path in angle brackets.\n" + "When not set, header basename is used in double quotes." + ); opts.AddLongOption('j', "json-output").OptionalArgument("<json-output>").StoreResult(&outputJsonFileName) .Help( @@ -433,12 +433,12 @@ int main(int argc, char** argv) { } } - if (!includePath) { + if (!includePath) { includePath = TString() + '"' + TFsPath(inputFileName).Basename() + '"'; - } else { + } else { includePath = TString() + '<' + includePath + '>'; - } - + } + TEnumParser parser(inputFileName); WriteHeader(includePath, *out, headerOut.Get()); |
