mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Automated Code Change
PiperOrigin-RevId: 868103806
This commit is contained in:
parent
a81be100c5
commit
3645f08153
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ std::string FieldConstantName(const google::protobuf::FieldDescriptor* field) {
|
|||
|
||||
void WriteConstFieldNumbers(Context& ctx,
|
||||
const google::protobuf::Descriptor* descriptor) {
|
||||
for (auto field : FieldRange(descriptor)) {
|
||||
for (auto field : internal::FieldRange(descriptor)) {
|
||||
ctx.Emit({{"name", FieldConstantName(field)}, {"number", field->number()}},
|
||||
"static constexpr ::uint32_t $name$ = $number$;\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue