diff options
author | spacelord <spacelord@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | 16747e4f77455cca4932df21eb76f12cb0a97a5c (patch) | |
tree | 4dd6da4102d99d0d69dec53c1050d290a850a9f2 /contrib/tools/protoc | |
parent | a817f5de12611ec73085eba17f8ec7740a46bdb7 (diff) | |
download | ydb-16747e4f77455cca4932df21eb76f12cb0a97a5c.tar.gz |
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/protoc')
-rw-r--r-- | contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp b/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp index cd96aa0565..ca0ebb4739 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp +++ b/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp @@ -715,20 +715,20 @@ namespace NPlugins { } } - void GenerateDeclarations() { - GenerateFieldAccessorDeclarations(); - + void GenerateDeclarations() { + GenerateFieldAccessorDeclarations(); + for (auto& nestedGenerator: NestedGenerators_) { nestedGenerator.GenerateDeclarations(); - } - } - - void GenerateDefinitions() { - GenerateClassExtension(); - GenerateDebugOutputExtension(); - GenerateClassDefinitionExtension(); - } - + } + } + + void GenerateDefinitions() { + GenerateClassExtension(); + GenerateDebugOutputExtension(); + GenerateClassDefinitionExtension(); + } + private: void GenerateFieldAccessorDeclarations() { TProtoStringType fileName = HeaderFileName(Descriptor_->file()); @@ -835,7 +835,7 @@ namespace NPlugins { return; } - TProtoStringType fileName = SourceFileName(Descriptor_->file()); + TProtoStringType fileName = SourceFileName(Descriptor_->file()); TProtoStringType scope = "namespace_scope"; std::unique_ptr<io::ZeroCopyOutputStream> output( OutputDirectory_->OpenForInsert(fileName, scope)); |