Switch to using protobuf's helper for the file's prefix. (#26605)

This adds support for protobuf ObjC support for using the proto package to
define the prefix for the file
(https://github.com/protocolbuffers/protobuf/pull/8760).

Once protobuf cuts a release, it likely makes sense to support the same
generator options that the objc generator does, but for now the environment
variable support can used to enable this when building from recent sources.
pull/26602/head
Thomas Van Lenten 4 years ago committed by GitHub
parent 987d526efc
commit 434f90b5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/compiler/objective_c_generator_helpers.h

@ -37,7 +37,7 @@ inline string MessageHeaderName(const FileDescriptor* file) {
inline string ServiceClassName(const ServiceDescriptor* service) {
const FileDescriptor* file = service->file();
string prefix = file->options().objc_class_prefix();
string prefix = google::protobuf::compiler::objectivec::FileClassPrefix(file);
return prefix + service->name();
}

Loading…
Cancel
Save