1. 29 Jan, 2016 1 commit
    • Jisi Liu's avatar
      Integrate from google internal. · 5221dcbe
      Jisi Liu authored
      Java files are moved to un-do the hack in the prevous commit, which
      moved the java files to the original position for integration.
      5221dcbe
  2. 22 Jan, 2016 1 commit
    • Feng Xiao's avatar
      Refactor README.md. · d0e0114f
      Feng Xiao authored
      Move the original README.md to src since it's talking about C++
      exclusively and add a more general README.md to document how
      to install protoc for all languages.
      d0e0114f
  3. 21 Jan, 2016 1 commit
    • Brian Silverman's avatar
      Avoid upcasting uninitialized pointers · 96c2dd5d
      Brian Silverman authored
      Fixes google/protobuf#693
      
      msan flags this as being undefined behavior. I think it's triggering
      because the compiler has to insert a branch to avoid changing the
      pointer's value if it starts out NULL. I can't figure out if this is
      actually undefined behavior or not, but it definitely seems to be a gray
      area of the standard which is best avoided.
      96c2dd5d
  4. 19 Jan, 2016 1 commit
  5. 16 Jan, 2016 2 commits
  6. 15 Jan, 2016 1 commit
    • Jon Skeet's avatar
      Make sure that · b1ea15f7
      Jon Skeet authored
      "valueField": null
      
      is parsed appropriately, i.e. that it remembers that the field is set.
      b1ea15f7
  7. 11 Jan, 2016 1 commit
  8. 09 Jan, 2016 1 commit
  9. 07 Jan, 2016 1 commit
    • Feng Xiao's avatar
      Patch internal change 111557819. · 76195058
      Feng Xiao authored
      Defer calls to mutable_unknown_fields() until it is actually required to
      save memory for C++ lite runtime.
      
      Change-Id: Ica9c1fd276cdb164942d1e7b6e098c83ee3ffdc5
      76195058
  10. 30 Dec, 2015 1 commit
  11. 29 Dec, 2015 2 commits
  12. 28 Dec, 2015 1 commit
  13. 19 Dec, 2015 1 commit
  14. 16 Dec, 2015 2 commits
  15. 15 Dec, 2015 1 commit
    • Jon Skeet's avatar
      Make ToString() valid without a type registry · aabc6c41
      Jon Skeet authored
      This addresses issue #1008, by creating a JsonFormatter which is private and only different
      to JsonFormatter.Default in terms of reference equality.
      
      Other plausible designs:
      
      - The same, but expose the diagnostic-only formatter
      - Add something to settings to say "I don't have a type registry at all"
      - Change the behaviour of JsonFormatter.Default (bad idea IMO, as we really *don't* want the result of this used as regular JSON to be parsed)
      
      Note that just trying to find a separate fix to issue #933 and using that to override Any.ToString() differently wouldn't work for messages that *contain* an Any.
      
      Generated code changes follow in the next commit.
      aabc6c41
  16. 14 Dec, 2015 1 commit
  17. 12 Dec, 2015 1 commit
  18. 09 Dec, 2015 2 commits
  19. 08 Dec, 2015 1 commit
  20. 06 Dec, 2015 1 commit
  21. 02 Dec, 2015 1 commit
  22. 29 Nov, 2015 1 commit
  23. 24 Nov, 2015 1 commit
  24. 22 Nov, 2015 1 commit
    • 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
  25. 19 Nov, 2015 2 commits
  26. 17 Nov, 2015 1 commit
  27. 09 Nov, 2015 1 commit
    • Jon Skeet's avatar
      Change how the reflection descriptor class is generated. · 61a50b9e
      Jon Skeet authored
      Instead of having a Proto nested namespace to avoid conflicts between the descriptor-holding static class and message classes, just append "Reflection" to the name.
      Generated code changes (and corresponding manual changes) in following commit.
      61a50b9e
  28. 06 Nov, 2015 1 commit
  29. 03 Nov, 2015 1 commit
  30. 02 Nov, 2015 1 commit
    • Feng Xiao's avatar
      Fix compilation errors when built internally. · 9659ea9e
      Feng Xiao authored
        1. mathlimits.h must be included before the inclusion of cmath (which
           gtest/gtest.h seems to include).
        2. hash function for StringPiece doesn't work.
      
      Change-Id: I358a25d941a25b10b39fe76780eda41557699811
      9659ea9e
  31. 30 Oct, 2015 1 commit
  32. 29 Oct, 2015 1 commit
    • Bruce Dawson's avatar
      Get VS 2015 to use const int definitions · 86ba70ec
      Bruce Dawson authored
      VC++ up to VS 2015 RTM does not require explicit storage allocation for
      static const integers declared in classes. VS 2015 Update 1 requires
      these storage definitions in some cases. It's unclear exactly what
      cases - simple tests work with and without the explicit storage
      allocation.
      
      Many previous versions of VC++ have theoretically *allowed* a
      definition to supply storage, but tests on VC++ 2013 show that this
      doesn't actually work correctly - it leads to duplicate definition
      errors in Chromium. So, the change is scoped to VS 2015 only.
      
      This change also updates the generated files to match the new generator.
      
      TL;DR - this change is necessary in order for Chromium to build with
      VS 2015 Update 1.
      86ba70ec
  33. 24 Oct, 2015 1 commit
  34. 22 Oct, 2015 1 commit
  35. 13 Oct, 2015 1 commit