1. 25 May, 2018 9 commits
    • Paul Yang's avatar
      Merge pull request #4675 from TeBoring/3.6.x · 4885b805
      Paul Yang authored
      Cherry-pick php generated code changes into 3.6.x
      4885b805
    • Paul Yang's avatar
      Fix array constructor in c extension for compatibility (#4667) · dadc9543
      Paul Yang authored
      In old generated code, the constructor of message doesn't provide a
      default null to parent's constructor. Previously, in c extesnion, this
      case was not handled.
      dadc9543
    • Brent Shaffer's avatar
      PHP namespaces for nested messages and enums (#4536) · 2774e544
      Brent Shaffer authored
      * uses namespaces for nested messages and enums
      
      * fixes namespaces for PHP dist
      
      * fixes namespace for Descriptors, adds Cardinality and Kind
      
      * fixes nested namespaces for reserved words and adds tests
      
      * adds tests and generator fix for php class prefixes
      
      * fixes escaping of protobuf packages, enum comments, misc others
      
      * nice refactor of generated code
      
      * adds class files for backwards compatibility
      
      * simplifies code with templates
      
      * adds compatibility files to makefile
      
      * cleanup of generator and fixes nested namespace bug
      
      * regenerates proto types
      
      * remove internal BC classes
      
      * adds deprecated warning, adds methods back
      
      * simplifies if statement
      
      * fixes dist files
      
      * addresses review comments
      
      * adds back TYPE_URL_PREFIX constant
      
      * adds @deprecated to old nested class files
      
      * skips tests which require a separate process when protobuf.so is enabled
      
      * Adds tests for legacy nested classes that do not require separate processes to test
      
      * uses legacy names for GPBUtil message check
      
      * adds block for IDE @deprecated message
      
      * Namespace for nested message/enum in c extension
      
      * Remove unused code
      2774e544
    • Bo Yang's avatar
      Implement array constructor in php c extension. · 8b336f8c
      Bo Yang authored
      8b336f8c
    • Brent Shaffer's avatar
      PHP array constructors for protobuf messages (#4530) · c9b404d2
      Brent Shaffer authored
      * PHP array constructors for protobuf messages
      
      * removes Descriptor from error message
      
      * allows mergeFrom to accept an array
      
      * only use initWithDescriptor if instanceof MapEntry
      
      * adds doc comments
      
      * removes ability for constructors to take arrays for submessages
      
      * Revert "allows mergeFrom to accept an array"
      
      This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9.
      
      * makes mergeFromArray protected and fixes mergeFrom whitespace
      
      * Separates merging from JSON and merging from PHP array
      
      * removes well-known types and json keys from array construction
      
      * Addresses PR review comments
      
      * cleans up tests
      
      * fixes exception messages
      c9b404d2
    • Bo Yang's avatar
      Add missing ruby/tests/test_ruby_package.proto · 7eba6246
      Bo Yang authored
      7eba6246
    • Erik Benoist's avatar
    • Paul Yang's avatar
      Adopt ruby_package in ruby generated code. (#4627) · 5289ee0c
      Paul Yang authored
      * Adopt ruby_package in ruby generated code.
      
      * Add test for ruby_package
      5289ee0c
    • Paul Yang's avatar
      Adopt php_metadata_namespace in php code generator (#4622) · d8483a92
      Paul Yang authored
      * Adopt php_metadata_namespace in php code generator
      
      The php_metadata_namespace is corresponded to the relative directory of
      the metadata file. e.g., previously, the metadata file of foo.proto was
      GPBMetadata/Foo.php. If the php_metadata_namespace is "Metadata\\Bar",
      the metadata file will be Metadata/Bar/Foo.php.
      
      * Handle empty php_metadata_namespace
      d8483a92
  2. 24 May, 2018 2 commits
  3. 15 May, 2018 1 commit
  4. 14 May, 2018 1 commit
  5. 11 May, 2018 2 commits
  6. 10 May, 2018 2 commits
  7. 09 May, 2018 1 commit
  8. 06 May, 2018 1 commit
  9. 04 May, 2018 1 commit
  10. 03 May, 2018 2 commits
  11. 02 May, 2018 4 commits
  12. 30 Apr, 2018 5 commits
  13. 27 Apr, 2018 4 commits
    • Feng Xiao's avatar
      Merge pull request #4568 from hectim/master · fc922d16
      Feng Xiao authored
      fixed typo
      fc922d16
    • Feng Xiao's avatar
      Merge pull request #4550 from Mizux/master · 7f2c3cec
      Feng Xiao authored
      CMake: Update CXX Standard management
      7f2c3cec
    • Jon Skeet's avatar
      Fix to allow AOT compilers to play nicely with reflection · 1b219a17
      Jon Skeet authored
      With this fix, Unity using IL2CPP should work with one of two
      approaches:
      
      - Call `FileDescriptor.ForceReflectionInitialization<T>` for every
        enum present in generated code (including oneof case enums)
      - Ensure that IL2CPP uses the same code for int and any int-based
        enums
      
      The former approach is likely to be simpler, unless IL2CPP changes
      its default behavior. We *could* potentially generate the code
      automatically, but that makes me slightly uncomfortable in terms of
      generating code that's only relevant in one specific scenario. It
      would be reasonably easy to write a tool (separate from protoc) to
      generate the code required for any specific set of assemblies, so
      that Unity users can include it in their application. We can always
      decide to change to generate it automatically later.
      1b219a17
    • Brady Killeen's avatar
      typo · 9ba2fd30
      Brady Killeen authored
      9ba2fd30
  14. 25 Apr, 2018 3 commits
  15. 24 Apr, 2018 2 commits