put helpers into anon namespace

pull/10555/head
Josh Humphries 2 years ago
parent 7702355b9c
commit 0bc90b189c
  1. 5
      src/google/protobuf/descriptor.cc

@ -7676,6 +7676,9 @@ bool DescriptorBuilder::OptionInterpreter::ExamineIfOptionIsSet(
return true;
}
namespace {
// Helpers for method below
template <typename T> std::string ValueOutOfRange(
absl::string_view type_name, absl::string_view option_name) {
return absl::StrFormat(
@ -7692,6 +7695,8 @@ template <typename T> std::string ValueMustBeInt(
type_name, option_name);
}
} // namespace
bool DescriptorBuilder::OptionInterpreter::SetOptionValue(
const FieldDescriptor* option_field, UnknownFieldSet* unknown_fields) {
// We switch on the CppType to validate.

Loading…
Cancel
Save