diff options
author | melkov <melkov@yandex-team.ru> | 2022-02-10 16:48:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:13 +0300 |
commit | 438546c8737d5c1fdeb31157dcf999717d930eec (patch) | |
tree | d29d229abd2f9f889b9b7eb148d635059dc26acf /contrib/tools/protoc/plugins | |
parent | 96647fad5355ff5ef45a00a6d85c097028584ab0 (diff) | |
download | ydb-438546c8737d5c1fdeb31157dcf999717d930eec.tar.gz |
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/protoc/plugins')
-rw-r--r-- | contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp | 20 |
1 files changed, 10 insertions, 10 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..d5816b6bce 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp +++ b/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp @@ -213,11 +213,11 @@ namespace NPlugins { "inline $type$* Add$rname$() { return add_$name$(); }\n" "inline const $type$& get_idx_$name$(int _index) const { return $name$(_index); }\n" "inline const ::google::protobuf::RepeatedPtrField< $type$ >&\n" - " get_arr_$name$() const { return $name$(); }\n" + " get_arr_$name$() const { return $name$(); }\n" "inline const ::google::protobuf::RepeatedPtrField< $type$ >&\n" - " Get$rname$() const { return $name$(); }\n" + " Get$rname$() const { return $name$(); }\n" "inline ::google::protobuf::RepeatedPtrField< $type$ >*\n" - " Mutable$rname$() { return mutable_$name$(); }\n"); + " Mutable$rname$() { return mutable_$name$(); }\n"); if (Variables_.end() != Variables_.find("RName")) printer->Print(Variables_, @@ -225,9 +225,9 @@ namespace NPlugins { "inline $type$* Mutable$RName$(size_t _index) {Y_ASSERT(_index < static_cast<size_t>(::Max<int>())); return mutable_$name$(int(_index)); }\n" "inline $type$* Add$RName$() { return add_$name$(); }\n" "inline const ::google::protobuf::RepeatedPtrField< $type$ >&\n" - " Get$RName$() const { return $name$(); }\n" + " Get$RName$() const { return $name$(); }\n" "inline ::google::protobuf::RepeatedPtrField< $type$ >*\n" - " Mutable$RName$() { return mutable_$name$(); }\n" + " Mutable$RName$() { return mutable_$name$(); }\n" ); } @@ -457,20 +457,20 @@ namespace NPlugins { "inline void Add$rname$($type$ value) { add_$name$(value); }\n" "inline $type$ get_idx_$name$(int _index) const { return $name$(_index); }\n" "inline const ::google::protobuf::RepeatedField< $type$ >&\n" - " get_arr_$name$() const { return $name$(); }\n" + " get_arr_$name$() const { return $name$(); }\n" "inline const ::google::protobuf::RepeatedField< $type$ >&\n" - " Get$rname$() const { return $name$(); }\n" + " Get$rname$() const { return $name$(); }\n" "inline ::google::protobuf::RepeatedField< $type$ >*\n" - " Mutable$rname$() { return mutable_$name$(); }\n"); + " Mutable$rname$() { return mutable_$name$(); }\n"); if (Variables_.end() != Variables_.find("RName")) printer->Print(Variables_, "inline $type$ Get$RName$(size_t _index) const {Y_ASSERT(_index < static_cast<size_t>(::Max<int>())); return $name$(_index); }\n" "inline void Set$RName$(size_t _index, $type$ value) {Y_ASSERT(_index < static_cast<size_t>(::Max<int>())); set_$name$(_index, value); }\n" "inline void Add$RName$($type$ value) { add_$name$(value); }\n" "inline const ::google::protobuf::RepeatedField< $type$ >&\n" - " Get$RName$() const { return $name$(); }\n" + " Get$RName$() const { return $name$(); }\n" "inline ::google::protobuf::RepeatedField< $type$ >*\n" - " Mutable$RName$() { return mutable_$name$(); }\n" + " Mutable$RName$() { return mutable_$name$(); }\n" ); } |