diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-05-29 21:51:54 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-05-30 10:47:02 -0700 |
commit | 4f5eb100bb2086622b1f3aaec472d83768b68b32 (patch) | |
tree | 5e56a12691e26ed7231ec8ff693240be49afc064 /src/google/protobuf/compiler/php/php_generator.h | |
parent | 397ddf9e5c7876e907ffd42256cb469f340268ef (diff) | |
download | protobuf-4f5eb100bb2086622b1f3aaec472d83768b68b32.tar.gz protobuf-4f5eb100bb2086622b1f3aaec472d83768b68b32.tar.bz2 protobuf-4f5eb100bb2086622b1f3aaec472d83768b68b32.zip |
Move methods out of class (#4697)
Diffstat (limited to 'src/google/protobuf/compiler/php/php_generator.h')
-rw-r--r-- | src/google/protobuf/compiler/php/php_generator.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/google/protobuf/compiler/php/php_generator.h b/src/google/protobuf/compiler/php/php_generator.h index 82109ec4..b851d9b4 100644 --- a/src/google/protobuf/compiler/php/php_generator.h +++ b/src/google/protobuf/compiler/php/php_generator.h @@ -48,19 +48,18 @@ class LIBPROTOC_EXPORT Generator const string& parameter, 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); - }; +// 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 } // namespace compiler } // namespace protobuf |