The existing optional support for objc_class_prefix only checks the file
defining the service, but the types for the messages can come from other files.
This allows those methods to be skipped if the other files didn't have a
objc_class_prefix set.
* [OBJC] Don't add unnecessary prefixes to service class names
This is the same semantics as the Objective-C protoc.
This prevents cases where you have an RPC named `FOOOpener` and a objc class prefix of `FOO` becoming `FOOFOOOpener`.
* Update objective_c_generator_helpers.h
Apply "sanity" check
* Update objective_c_generator_helpers.h
Fix up bad namespacing
* Update objective_c_generator_helpers.h
adding `::std::string`. Not quite sure why it's needed, but apparently it's a thing.
* Update objective_c_generator_helpers.h
Missing semi-colon. Hopefully caffeine will kick in at some point today... thanks tvl.
* Automated change: Fix sanity tests
Co-authored-by: dmaclach <dmaclach@users.noreply.github.com>
* Fix all lint errors in repo.
* Use strict buildifier by default
* Whoops. That file does not exist
* Attempt fix to buildifier invocation
* Add missing copyright
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.
* Adding suffix for stats handling to gRPC
* Fixing typo
* Fixing codegen, adding tests
* Fixing test failures
* Adding nullptr default in StubOptions
* Updating golden test file
* Replacing std::make_unique with absl::make_unique for pre-C++14 compatibility
* Fixing clang format errors
* Reuse stub options for generic stubs
* Cleaning up compiler warnings in GenericStub
* Update csharp_generator.cc to be compatible with internal and public proto
* Add mappings to config_protobuf.h:
* Refactor uses of MethodType
* Refactor Functions using GetMethodType
* Update for comments
* Update config_protobuf.h
* improve readability
* clang format code
Co-authored-by: Jan Tattermusch <jtattermusch@google.com>
Split() was incrementing the iterator past the end iterator when given
an empty string, which is undefined behaviour, and triggered an assert
when compiled with debug iterators in MSVC.