aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/protoc/plugins/cpp_styleguide
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /contrib/tools/protoc/plugins/cpp_styleguide
parent438546c8737d5c1fdeb31157dcf999717d930eec (diff)
downloadydb-2c532b38e6aeb4fd88531027c7335690fd34c4e5.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/protoc/plugins/cpp_styleguide')
-rw-r--r--contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp20
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 d5816b6bce..cd96aa0565 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"
);
}