Skip to content

Commit 294d639

Browse files
honglookercopybara-github
authored andcommitted
internal change
PiperOrigin-RevId: 800043461
1 parent fd6ebfe commit 294d639

13 files changed

+65
-26
lines changed

hpb_generator/gen_accessors.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#include "upb_generator/c/names.h"
2424
#include "upb_generator/minitable/names.h"
2525

26-
namespace google::protobuf::hpb_generator {
26+
namespace google {
27+
namespace protobuf {
28+
namespace hpb_generator {
2729

2830
namespace protobuf = ::proto2;
2931

@@ -678,5 +680,6 @@ std::string ResolveFieldName(const protobuf::FieldDescriptor* field,
678680
return ResolveKeywordConflict(field_name);
679681
}
680682

683+
} // namespace hpb_generator
681684
} // namespace protobuf
682-
} // namespace google::hpb_generator
685+
} // namespace google

hpb_generator/gen_accessors.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include "hpb_generator/gen_utils.h"
1313
#include "google/protobuf/descriptor.h"
1414

15-
namespace google::protobuf::hpb_generator {
15+
namespace google {
16+
namespace protobuf {
17+
namespace hpb_generator {
1618

1719
namespace protobuf = ::proto2;
1820

@@ -24,7 +26,8 @@ void WriteUsingAccessorsInHeader(const protobuf::Descriptor* desc,
2426
MessageClassType handle_type, Context& ctx);
2527
void WriteOneofAccessorsInHeader(const protobuf::Descriptor* desc,
2628
Context& ctx);
29+
} // namespace hpb_generator
2730
} // namespace protobuf
28-
} // namespace google::hpb_generator
31+
} // namespace google
2932

3033
#endif // GOOGLE_PROTOBUF_COMPILER_HPB_GEN_ACCESSORS_H__

hpb_generator/gen_enums.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
#include "hpb_generator/names.h"
2323
#include "google/protobuf/descriptor.h"
2424

25-
namespace google::protobuf::hpb_generator {
25+
namespace google {
26+
namespace protobuf {
27+
namespace hpb_generator {
2628

2729
namespace protobuf = ::proto2;
2830
using Sub = protobuf::io::Printer::Sub;
@@ -136,5 +138,6 @@ void WriteEnumDeclarations(
136138
}
137139
}
138140

141+
} // namespace hpb_generator
139142
} // namespace protobuf
140-
} // namespace google::hpb_generator
143+
} // namespace google

hpb_generator/gen_enums.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#include "hpb_generator/context.h"
1212
#include "google/protobuf/descriptor.h"
1313

14-
namespace google::protobuf::hpb_generator {
14+
namespace google {
15+
namespace protobuf {
16+
namespace hpb_generator {
1517

1618
namespace protobuf = ::proto2;
1719

@@ -22,7 +24,8 @@ std::string EnumValueSymbolInNameSpace(
2224
void WriteEnumDeclarations(
2325
const std::vector<const protobuf::EnumDescriptor*>& enums, Context& ctx);
2426

27+
} // namespace hpb_generator
2528
} // namespace protobuf
26-
} // namespace google::hpb_generator
29+
} // namespace google
2730

2831
#endif // GOOGLE_PROTOBUF_COMPILER_HPB_GEN_ENUMS_H__

hpb_generator/gen_extensions.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
#include "google/protobuf/descriptor.h"
1818
#include "upb_generator/c/names.h"
1919

20-
namespace google::protobuf::hpb_generator {
20+
namespace google {
21+
namespace protobuf {
22+
namespace hpb_generator {
2123

2224
namespace protobuf = ::proto2;
2325

@@ -77,5 +79,6 @@ void WriteExtensionIdentifiersHeader(
7779
}
7880
}
7981

82+
} // namespace hpb_generator
8083
} // namespace protobuf
81-
} // namespace google::hpb_generator
84+
} // namespace google

hpb_generator/gen_extensions.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#include "hpb_generator/context.h"
1212
#include "google/protobuf/descriptor.h"
1313

14-
namespace google::protobuf::hpb_generator {
14+
namespace google {
15+
namespace protobuf {
16+
namespace hpb_generator {
1517

1618
namespace protobuf = ::proto2;
1719

@@ -21,7 +23,8 @@ void WriteExtensionIdentifiersHeader(
2123
void WriteExtensionIdentifierHeader(const protobuf::FieldDescriptor* ext,
2224
Context& ctx);
2325

26+
} // namespace hpb_generator
2427
} // namespace protobuf
25-
} // namespace google::hpb_generator
28+
} // namespace google
2629

2730
#endif // GOOGLE_PROTOBUF_COMPILER_HPB_GEN_EXTENSIONS_H__

hpb_generator/gen_messages.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include "upb_generator/c/names.h"
2626
#include "upb_generator/minitable/names.h"
2727

28-
namespace google::protobuf::hpb_generator {
28+
namespace google {
29+
namespace protobuf {
30+
namespace hpb_generator {
2931

3032
namespace protobuf = ::proto2;
3133
using Sub = protobuf::io::Printer::Sub;
@@ -536,5 +538,6 @@ void WriteUsingEnumsInHeader(
536538
}
537539
}
538540

541+
} // namespace hpb_generator
539542
} // namespace protobuf
540-
} // namespace google::hpb_generator
543+
} // namespace google

hpb_generator/gen_messages.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#include "hpb_generator/context.h"
1212
#include "google/protobuf/descriptor.h"
1313

14-
namespace google::protobuf::hpb_generator {
14+
namespace google {
15+
namespace protobuf {
16+
namespace hpb_generator {
1517
namespace protobuf = ::proto2;
1618

1719
void WriteMessageClassDeclarations(
@@ -23,7 +25,8 @@ void WriteMessageImplementation(
2325
const protobuf::Descriptor* descriptor,
2426
const std::vector<const protobuf::FieldDescriptor*>& file_exts,
2527
Context& ctx);
28+
} // namespace hpb_generator
2629
} // namespace protobuf
27-
} // namespace google::hpb_generator
30+
} // namespace google
2831

2932
#endif // GOOGLE_PROTOBUF_COMPILER_HPB_GEN_MESSAGES_H__

hpb_generator/gen_repeated_fields.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#include "upb_generator/common.h"
2424
#include "upb_generator/file_layout.h"
2525

26-
namespace google::protobuf::hpb_generator {
26+
namespace google {
27+
namespace protobuf {
28+
namespace hpb_generator {
2729

2830
namespace protobuf = ::proto2;
2931

@@ -351,5 +353,6 @@ void WriteRepeatedScalarAccessor(const protobuf::Descriptor* desc,
351353
);
352354
}
353355

356+
} // namespace hpb_generator
354357
} // namespace protobuf
355-
} // namespace google::hpb_generator
358+
} // namespace google

hpb_generator/gen_repeated_fields.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include "hpb_generator/context.h"
1313
#include "google/protobuf/descriptor.h"
1414

15-
namespace google::protobuf::hpb_generator {
15+
namespace google {
16+
namespace protobuf {
17+
namespace hpb_generator {
1618

1719
namespace protobuf = ::proto2;
1820

@@ -42,7 +44,8 @@ void WriteRepeatedScalarAccessor(const protobuf::Descriptor* message,
4244
absl::string_view resolved_field_name,
4345
absl::string_view class_name, Context& ctx);
4446

47+
} // namespace hpb_generator
4548
} // namespace protobuf
46-
} // namespace google::hpb_generator
49+
} // namespace google
4750

4851
#endif // GOOGLE_PROTOBUF_COMPILER_HPB_GEN_REPEATED_FIELDS_H__

0 commit comments

Comments
 (0)