1. 05 Jun, 2017 1 commit
    • Paul Yang's avatar
      Add new file option php_namespace. (#3162) · 6f325805
      Paul Yang authored
      * Add new file option php_namespace.
      
      Use this option to change the namespace of php generated classes.
      Default is empty. When this option is empty, the package name will be
      used for determining the namespace.
      
      * Uncomment commented tests
      
      * Revert gdb test change
      
      * Update csharp descriptor.
      
      * Add test for empty php_namespace.
      6f325805
  2. 29 Mar, 2017 1 commit
  3. 17 Mar, 2017 1 commit
  4. 28 Feb, 2017 1 commit
  5. 23 Feb, 2017 1 commit
    • John Brock's avatar
      Fixes for .NET 3.5 compatibility · c9b2c8f3
      John Brock authored
      * Changing DOTNET35 framework symbols in preprocessor directives to the default built-in value of NET35.
      * Adding extension method StreamExtension.CopyTo for .NET 3.5 because it didn’t exist until .NET 4, and adding associated unit tests.
      c9b2c8f3
  6. 31 Jan, 2017 1 commit
    • Paul Yang's avatar
      Merge 3.2.x branch into master (#2648) · 7f3e2370
      Paul Yang authored
      * Down-integrate internal changes to github.
      
      * Update conformance test failure list.
      
      * Explicitly import used class in nano test to avoid random test fail.
      
      * Update _GNUC_VER to use the correct implementation of atomic operation
      on Mac.
      
      * maps_test.js: check whether Symbol is defined before using it (#2524)
      
      Symbol is not yet available on older versions of Node.js and so this
      test fails with them. This change just directly checks whether Symbol is
      available before we try to use it.
      
      * Added well_known_types_embed.cc to CLEANFILES so that it gets cleaned up
      
      * Updated Makefile.am to fix out-of-tree builds
      
      * Added Bazel genrule for generating well_known_types_embed.cc
      
      In pull request #2517 I made this change for the CMake and autotools
      builds but forgot to do it for the Bazel build.
      
      * Update _GNUC_VER to use the correct implementation of atomic operation on Mac.
      
      * Add new js file in extra dist.
      
      * Bump version number to 3.2.0
      
      * Fixed issue with autoloading - Invalid paths (#2538)
      
      * PHP fix int64 decoding (#2516)
      
      * fix int64 decoding
      
      * fix int64 decoding + tests
      
      * Fix int64 decoding on 32-bit machines.
      
      * Fix warning in compiler/js/embed.cc
      
      embed.cc: In function ‘std::string CEscape(const string&)’:
      embed.cc:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < str.size(); ++i) {
                                      ^
      
      * Fix include in auto-generated well_known_types_embed.cc
      
      Restore include style fix (e3da722b) that has been trampled by
      auto-generation of well_known_types_embed.cc
      
      * Fixed cross compilations with the Autotools build
      
      Pull request #2517 caused cross compilations to start failing, because
      the js_embed binary was being built to run on the target platform
      instead of on the build machine. This change updates the Autotools build
      to use the AX_PROG_CXX_FOR_BUILD macro to find a suitable compiler for
      the build machine and always use that when building js_embed.
      
      * Minor fix for autocreated object repeated fields and maps.
      
      - If setting/clearing a repeated field/map that was objects, check the class
        before checking the autocreator.
      - Just to be paranoid, don’t mutate within copy/mutableCopy for the autocreated
        classes to ensure there is less chance of issues if someone does something
        really crazy threading wise.
      - Some more tests for the internal AutocreatedArray/AutocreatedDictionary
        classes to ensure things are working as expected.
      - Add Xcode 8.2 to the full_mac_build.sh supported list.
      
      * Fix generation of extending nested messages in JavaScript (#2439)
      
      * Fix generation of extending nested messages in JavaScript
      
      * Added missing test8.proto to build
      
      * Fix generated code when there is no namespace but there is enum definition.
      
      * Decoding unknown field should succeed.
      
      * Add embed.cc in src/Makefile.am to fix dist check.
      
      * Fixed "make distcheck" for the Autotools build
      
      To make the test pass I needed to fix out-of-tree builds and update
      EXTRA_DIST and CLEANFILES.
      
      * Remove redundent embed.cc from src/Makefile.am
      
      * Update version number to 3.2.0-rc.1 (#2578)
      
      * Change protoc-artifacts version to 3.2.0-rc.1
      
      * Update version number to 3.2.0rc2
      
      * Update change logs for 3.2.0 release.
      
      * Update php README
      
      * Update upb, fixes some bugs (including a hash table problem). (#2611)
      
      * Update upb, fixes some bugs (including a hash table problem).
      
      * Ruby: added a test for the previous hash table corruption.
      
      Verified that this triggers the bug in the currently released
      version.
      
      * Ruby: bugfix for SEGV.
      
      * Ruby: removed old code for dup'ing defs.
      
      * Reverting deployment target to 7.0 (#2618)
      
      The Protobuf library doesn’t require the 7.1 deployment target so
      reverting it back to 7.0
      
      * Fix typo that breaks builds on big-endian (#2632)
      
      * Bump version number to 3.2.0
      7f3e2370
  7. 19 Jan, 2017 1 commit
    • Jon Skeet's avatar
      Support custom options in C# · 047575f2
      Jon Skeet authored
      This consists of:
      - Changing the codegen for the fixed set of options protos, to parse unknown fields instead of skipping them
      - Add a new CustomOptions type in the C# support library
      - Expose CustomOptions properties from the immutable proto wrappers in the support library
      
      Only single-value options are currently supported, and fetching options values requires getting the type right
      and knowing the field number. Both of these can be addressed at a later time.
      
      Fixes #2143, at least as a first pass.
      047575f2
  8. 12 Dec, 2016 1 commit
  9. 07 Dec, 2016 1 commit
  10. 30 Nov, 2016 1 commit
  11. 23 Nov, 2016 1 commit
  12. 03 Nov, 2016 1 commit
    • Jon Skeet's avatar
      Change JSON field name formatting · 50a37e01
      Jon Skeet authored
      This affects cases with leading capital letters.
      
      This breaks compatibility with previous C# releases, but
      fixes compatibility with other implementations.
      
      See #2278 for details.
      50a37e01
  13. 10 Oct, 2016 2 commits
  14. 23 Sep, 2016 1 commit
  15. 21 Sep, 2016 1 commit
  16. 05 Sep, 2016 1 commit
  17. 13 Jul, 2016 1 commit
  18. 04 Jul, 2016 1 commit
  19. 28 Jun, 2016 1 commit
  20. 20 Apr, 2016 3 commits
    • Jon Skeet's avatar
      Regenerate well-known types for C# · c588ac42
      Jon Skeet authored
      (There are documentation changes and new fields in descriptor.proto that have resulted
      in changes to the serialized descriptor, but no breaking changes for C#.)
      c588ac42
    • Jon Skeet's avatar
      Regenerate all C# code and make it compile · 84ea2c7a
      Jon Skeet authored
      JSON tests fail, as we're not using OriginalNameAttribute yet.
      84ea2c7a
    • Jon Skeet's avatar
      Add C# codegen changes to enum value names (mostly C++) · 75626ed7
      Jon Skeet authored
      Overview of changes:
      - A new C#-specific command-line option, legacy_enum_values to revert to the old behavior
      - When legacy_enum_values isn't specified, we strip the enum name as a prefix, and PascalCase the value name
      - A new attribute within the C# code so that we can always tell the original in-proto name
      
      Regenerating the C# code with legacy_enum_values leads to code which still compiles and works - but
      there's more still to do.
      75626ed7
  21. 30 Mar, 2016 1 commit
    • Jon Skeet's avatar
      Refactoring of FieldDescriptor · 71e8dca0
      Jon Skeet authored
      This makes no externally visible behavioral changes. Internally and non-behaviorally:
      
      - We use a field (compiler-generated) to store the JsonName to avoid recomputing it repeatedly
      - The documentation for JsonName is updated to reflect the meaning better
      - Readonly autoprops and expression-bodied properties used where possible
      71e8dca0
  22. 29 Mar, 2016 1 commit
  23. 18 Mar, 2016 1 commit
  24. 04 Feb, 2016 4 commits
  25. 15 Jan, 2016 1 commit
  26. 15 Dec, 2015 1 commit
  27. 22 Nov, 2015 2 commits
    • Jon Skeet's avatar
      Generated code changes for previous commit (basically… · a2667aaf
      Jon Skeet authored
      Generated code changes for previous commit (basically InternalBuildGeneratedFileFrom => FromGeneratedCode)
      a2667aaf
    • Jon Skeet's avatar
      Tidy up reflection in advance of attempting to implement DynamicMessage. · 72ec3367
      Jon Skeet authored
      There are corner cases where MessageDescriptor.{ClrType,Parser} will return null, and these are now documented. However, normally they *should* be implemented, even for descriptors of for dynamic messages. Ditto FieldDescriptor.Accessor.
      We'll still need a fair amount of work to implement dynamic messages, but this change means that the public API will be remain intact.
      
      Additionally, this change starts making use of C# 6 features in the files that it touches. This is far from exhaustive, and later PRs will have more.
      
      Generated code changes coming in the next commit.
      72ec3367
  28. 21 Nov, 2015 1 commit
  29. 19 Nov, 2015 2 commits
  30. 09 Nov, 2015 1 commit
  31. 06 Nov, 2015 1 commit
  32. 04 Nov, 2015 1 commit