Commit 397ddf9e authored by Paul Yang's avatar Paul Yang Committed by Bo Yang

Add back GeneratedClassName to public (#4686)

These methods are used by grpc
parent 6c12ff5a
......@@ -49,6 +49,16 @@ class LIBPROTOC_EXPORT Generator
GeneratorContext* generator_context,
string* error) const;
// To skip reserved keywords in php, some generated classname are prefixed.
// Other code generators may need following API to figure out the actual
// classname.
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::Descriptor* desc);
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::EnumDescriptor* desc);
LIBPROTOC_EXPORT std::string GeneratedClassName(
const google::protobuf::ServiceDescriptor* desc);
};
} // namespace php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment