aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* PHP namespaces for nested messages and enums (#4536)Gravatar Brent Shaffer2018-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement array constructor in php c extension.Gravatar Bo Yang2018-05-25
|
* PHP array constructors for protobuf messages (#4530)Gravatar Brent Shaffer2018-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add missing ruby/tests/test_ruby_package.protoGravatar Bo Yang2018-05-25
|
* Allows the json marshaller to be passed json marshal options (#4252)Gravatar Erik Benoist2018-05-25
|
* Adopt ruby_package in ruby generated code. (#4627)Gravatar Paul Yang2018-05-25
| | | | | | * Adopt ruby_package in ruby generated code. * Add test for ruby_package
* Adopt php_metadata_namespace in php code generator (#4622)Gravatar Paul Yang2018-05-25
| | | | | | | | | | | * 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
* Merge pull request #4673 from acozzette/memory-leak-fixGravatar Adam Cozzette2018-05-24
|\ | | | | Make sure to delete temporary maps used by FileDescriptorTables
| * Make sure to delete temporary maps used by FileDescriptorTablesGravatar Adam Cozzette2018-05-24
|/ | | | | | | I ran the tcmalloc heap checker in draconian mode, and it reported some heap allocations that were still reachable when protobuf-test exited. To fix that, I updated FileDescriptorTables to make sure its temporary heap-allocated maps are deleted when it is destroyed.
* Merge pull request #4625 from liujisi/3.6.xGravatar Jisi Liu2018-05-15
|\ | | | | Update version number to 3.6.0
| * Update version number to 3.6.0Gravatar Jisi Liu2018-05-14
|/
* Add file option php_metadata_namespace and ruby_package (#4609)Gravatar Paul Yang2018-05-11
|
* Merge pull request #4538 from Mizux/patch-2Gravatar Feng Xiao2018-05-10
|\ | | | | Add .proto files to extract_includes.bat
* | Throw error if user want to access message properties (#4603)Gravatar Paul Yang2018-05-10
| | | | | | | | | | | | * Throw error if user want to access message properties * Fix typo
* | Avoid direct check of class name (#4601)Gravatar Paul Yang2018-05-10
| | | | | | | | | | | | | | | | * Avoid direct check of class name So that subclasses are also ok * Use type hint in function signature.
* | use brew install instead of easy_install in OSX (#4537)Gravatar Jie Luo2018-05-09
| | | | | | use brew instead of easy_install in OSX (easy_install keep failing for a month)
* | Merge pull request #4590 from PetterS/undefined_fixGravatar Feng Xiao2018-05-06
|\ \ | | | | | | Fix error in Clang UndefinedBehaviorSanitizer
| * | Fix error in Clang UndefinedBehaviorSanitizerGravatar Petter Strandmark2018-05-04
|/ / | | | | | | | | | | Pointer Arguments to memcpy can not be null in UndefinedBehaviorSanitizer. In this case, both the memory and the size was zero. This change allows protoc to run under UndefinedBehaviorSanitizer.
* | Add VS2017 optional component dependency details to the C# readme (#4128)Gravatar David Chennells2018-05-03
| | | | | | Add mention to the "Build" section of the ReadMe of the requirement of installing an optional component to VS2017.
* | Fix python ext build on kokoro (#4527)Gravatar Yilun Chong2018-05-03
| |
* | Merge pull request #4586 from chronoxor/masterGravatar Feng Xiao2018-05-02
|\ \ | | | | | | Fix MinGW build
| * | MinGW build failedGravatar Ivan Shynkarenka2018-05-02
|/ /
* | Merge pull request #4583 from chronoxor/masterGravatar Feng Xiao2018-05-01
|\ \ | | | | | | Fix CMake build on Cygwin.
| * | Cygwin build failedGravatar Ivan Shynkarenka2018-05-02
|/ /
* | Fix RepeatedField#delete_if (#4292)Gravatar Stuart Campbell2018-04-30
| | | | | | Make RepeatedField#delete_if consistent with Array#delete_if.
* | Add space between class name and concat message (#4577)Gravatar Petar Dambovaliev2018-04-30
| | | | | | | | The class name was linked to the next word in the sentence. "User\UserRequestis not found in descriptor pool."
* | Merge pull request #4581 from Yeolar/3rd_rpc_rasterGravatar Feng Xiao2018-04-30
|\ \ | | | | | | Add a third-party RPC implementation: raster
* | | [objectivec] Fix memory leak of exceptions raised by RaiseException() (#4556)Gravatar Hiroshi Ichikawa2018-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix memory leak of exceptions raised by RaiseException() Currently exceptions raised by RaiseException() is never deallocated because: * ARC is disabled for this library: https://github.com/google/protobuf/blob/master/BUILD#L913 * It is constructed with `+alloc` but is never `-release`d. This change fixes the issue by using `-[NSException exceptionWithName:...]` instead, which returns an autoreleased instance, so it is deallocated properly. * Fix format.
| * | Add third-party RPC implementation: raster - a network framework supports ↵Gravatar Yeolar2018-04-30
|/ / | | | | | | pbrpc by 'service' keyword.
* | Merge pull request #4568 from hectim/masterGravatar Feng Xiao2018-04-27
|\ \ | | | | | | fixed typo
* \ \ Merge pull request #4550 from Mizux/masterGravatar Feng Xiao2018-04-27
|\ \ \ | | | | | | | | CMake: Update CXX Standard management
* | | | Fix to allow AOT compilers to play nicely with reflectionGravatar Jon Skeet2018-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | typoGravatar Brady Killeen2018-04-26
| |/ / |/| |
* | | Merge pull request #4553 from pherl/rubyGravatar Jisi Liu2018-04-25
|\ \ \ | | | | | | | | Set ext.no_native = true for non mac platform
| * | | Set ext.no_native = true for non mac platformGravatar Jisi Liu2018-04-25
|/ / / | | | | | | | | | | | | From: https://github.com/rake-compiler/rake-compiler/issues/146#issuecomment-368539245
| | * fix duplicate mkdir in update_file_lists.shGravatar Corentin Le Molgat2018-04-25
| | | | | | | | | | | | | | | - merge loop for .h and .proto includes - fix shellcheck errors
| * | CMake: Update CXX Standard managementGravatar Corentin Le Molgat2018-04-24
|/ /
| * Add .proto files to extract_includes.batGravatar Mizux2018-04-24
| | | | | | | | | | For google/or-tools, on windows, we need to use `import "google/protobuf/wrappers.proto";` since we want "optional" int64 and in version3 POD get default value... -> so we use "google.protobuf.Int64Value" since 0 is a valid value and different from "not set" for our use case.
* | Move to Xcode 9.3 which also means a High Sierra image.Gravatar Thomas Van Lenten2018-04-21
| |
* | Remove the iOS Test App.Gravatar Thomas Van Lenten2018-04-20
| | | | | | | | | | | | The tests can run as what Apple calls a Logic Test (under xctest), which means it doesn't have to load an full UI App under the simulator, which speeds things up a fair amount.
* | Merge pull request #4520 from BSBandme/fix_kokoro_benchmark_buildGravatar Yilun Chong2018-04-20
|\ \ | |/ |/| Fix benchmark build
* | Write messages to backing field in generated C# cloning code (#4440)Gravatar Sydney Acksman2018-04-19
| | | | | | | | | | | | * Edited MessageFieldGenerator to clone to backing field instead of property * Generated C# proto code
* | Merge pull request #4504 from xfxyjwf/liteGravatar Feng Xiao2018-04-18
|\ \ | | | | | | Cleanup + documentation for Java Lite runtime.
| * | Update Makefile.am for Java lite files.Gravatar Feng Xiao2018-04-18
| | |
| | * Fix benchmark buildGravatar Yilun Chong2018-04-16
| | |
* | | Merge pull request #4517 from rcane/feature/vc2017_build_fixGravatar Adam Cozzette2018-04-16
|\ \ \ | | | | | | | | Fixed a Visual Studio 2017 build error. (#4488)
* \ \ \ Merge pull request #4510 from BSBandme/fix_kokoro_benchmark_buildGravatar Yilun Chong2018-04-16
|\ \ \ \ | | |_|/ | |/| | fix java benchmark, fix dashboard build
| | * | Fixed a Visual Studio 2017 build error. (#4488)Gravatar Ronny Krüger2018-04-16
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current 15.6.x versions of Visual Studio 2017 contain a bug that prevent them from compiling the following construct under certain conditions: std::unique_ptr<std::unique_ptr<Foo> []> foos; This will fail to compile if Foo is an abstract class. To work-around the problem the whole construct was change into: std::vector<std::unique_ptr<Foo>> foos; This not only fixes the compiler error but is also more readable than previous version.
| * | fix java benchmark, fix dashboard buildGravatar Yilun Chong2018-04-13
|/ /
| * Cleanup + documentation for Java Lite runtime.Gravatar Feng Xiao2018-04-12
|/