Feng Xiao
78aee1b15f
Merge pull request #2044 from wychen/Win32ANSI
...
Fix Win32 error messages on Unicode build
2016-09-09 16:46:50 -07:00
Feng Xiao
53387e5f55
Merge pull request #2090 from guoxiao/find
...
include std::find()
2016-09-09 12:44:34 -07:00
Thomas Van Lenten
7377eb2b03
Merge pull request #1970 from thomasvl/objc_any_helpers
...
Objc any helpers
2016-09-09 11:02:09 -04:00
Sergio Campamá
14e74f6a21
Support the -Wassign-enum compiler flag. ( #2085 )
...
Support the -Wassign-enum compiler flag.
2016-09-08 15:15:12 -04:00
Thomas Van Lenten
337ec3065f
Add ObjC helpers for Any WKT.
...
- Capture the ObjC prefix used when generating the the file.
- Track the containing type on descriptors.
- Mark descriptors where the message class name got a suffix added to it.
- Expose a fullName property on Descriptors.
- Add helpers for packing/unpacking Any messages.
- Bump the ObjC runtime version number. Since we added methods and invoke them
in the generated code, ensure the code is running against a matching version.
Otherwise, someone could compile against headers, but run with a framework
that is older and get unknown selector failures. This should trip clearer
messaging.
Fixes https://github.com/google/protobuf/issues/1674
2016-09-08 11:59:57 -04:00
Guo Xiao
82133ba00b
include std::find()
2016-09-08 21:33:18 +08:00
Chih-Hung Hsieh
7c3f7c6a09
Fix #1955 clang-tidy warning misc-macro-parentheses
...
clang-tidy gives warning "macro argument should be enclosed in
parentheses" to macro ZR_, the "first" parameter.
2016-09-02 15:28:42 -07:00
Feng Xiao
fa6428ed2a
Merge pull request #2045 from mike07026/master
...
fix #1342 cause by ownership issues
2016-09-02 11:01:05 -07:00
Thomas Van Lenten
85c1adf9f9
Merge pull request #2053 from thomasvl/improve_root_registry_wiring
...
Make Root's +extensionRegistry generation smarter.
2016-09-02 10:11:07 -04:00
Thomas Van Lenten
13a41246dd
Make Root's +extensionRegistry generation smarter.
...
At generation time, walk the file's dependencies to see what really contains
extensions so we can generate more minimal code that only links together the
roots that provided extensions. Gets a bunch of otherwise noop code out of
the call flow when the roots are +initialized.
2016-09-01 18:08:59 -04:00
Jisi Liu
d00cab0f8c
Merge pull request #2039 from khingblue/remove-unused-vector
...
Remove unused vector
2016-09-01 09:17:43 -07:00
mike07026
df6088a7e8
detect invaild JSON encoding in bytes field
2016-09-01 20:08:45 +08:00
mike07026
5a17660ca0
detect invaild JSON encoding in bytes field
2016-09-01 20:06:55 +08:00
mike07026
e514f232a0
fix #1342 cause by ownership issues
2016-09-01 09:04:24 +08:00
Wei-Yin Chen (陳威尹)
48811b2edd
Fix Win32ErrorMessage on Unicode build
2016-08-31 17:28:51 -07:00
Wei-Yin Chen (陳威尹)
11d6cb56d0
Add test for Win32ErrorMessage
2016-08-31 17:28:51 -07:00
Wei-Yin Chen (陳威尹)
588a803d58
Support Unicode build on Windows
2016-08-31 17:28:51 -07:00
Feng Xiao
b9649765f8
Merge pull request #2024 from pstavirs/master
...
Restore New*Callback into google::protobuf namespace …
2016-08-31 11:39:38 -07:00
Khing
8ee6f568ea
Remove unused vector
2016-08-31 15:12:32 +10:00
Thomas Van Lenten
78a6d310de
Speed up ObjC Generation with large dependency trees
...
Don't create FileGenerators for each dep. FileGenerators will deeply create all
the message, enum, and field generators; but those aren't needed when doing
the imports for dependencies. Instead directly generate the imports off the
FileDescriptors so no extra objects are created. The only other use was when
chaining together the *Roots for the file extension registry, but that also
can be generate off the name of the FileDescriptor directly.
2016-08-30 10:51:59 -04:00
Srivats P
eedc7be680
Restore New*Callback into google::protobuf namespace since these are used by the service stubs code
...
Fixes #1966
2016-08-29 22:57:46 +05:30
Thomas Van Lenten
2e66a61b54
Support GenerateAll().
...
- Expect calls on GenerateAll() and not Generate().
- Parse the prefix validation file once, and then check all the files.
2016-08-26 13:54:00 -04:00
Thomas Van Lenten
290d26b462
Remove the compiler options from ImportWriter.
...
Breaks the tie of the ImportWriter to the ObjC generation, allow grpc to use
a different extension and to relay the values they need for these.
- Pass in the two framework options to the ctor.
- Pass in the header extension to AddFile.
2016-08-23 11:19:38 -04:00
Thomas Van Lenten
93362a5aa5
Move the ImportWriter into the ObjC Helpers.
...
grpc likely needs to provide the same sorta handling, so expose the class so
the logic can be reused.
2016-08-23 10:19:03 -04:00
Sergio Campamá
ff2a6600e5
Adds better support for protos without packages ( #1979 )
...
Adds better support for protos without packages and more warnings on possible improvements
2016-08-19 09:35:33 -04:00
Sergio Campamá
a2484208c3
Fixes extra whitespace on generated comments. ( #1950 )
...
Fixes extra whitespace on generated comments.
2016-08-12 14:44:03 -04:00
Sergio Campamá
237f321e33
Adds support for appledoc in generated code. ( #1928 )
...
Convert mapping of proto comments to appledoc format so they show up in Xcode and cocoadocs.
Fixes https://github.com/google/protobuf/issues/1866
2016-08-09 08:26:24 -04:00
Bryon Gloden, CISSP®
a375e1acfd
close opened file descriptors properly
2016-08-05 17:30:19 -04:00
Feng Xiao
c59473d53e
Merge pull request #1044 from mark-whiting/master
...
Adding missing generic gcc 64-bit atomicops.
2016-08-04 11:21:40 -07:00
Jisi Liu
169d0ca43c
Merge pull request #1893 from google/3.0.0-GA
...
Merge 3.0.0-GA into master
2016-07-29 14:27:53 -07:00
Clement Courbet
c466f4b539
Be consistent with the use of CHECK()/ GOOGLE_CHECK().
2016-07-29 16:59:42 +02:00
Jisi Liu
e3fac65add
Change the build.zip.sh to support lite
2016-07-28 14:24:05 -07:00
Josh Haberman
e7982e409d
Fixed Makefile.am for Ruby file rename.
2016-07-27 14:35:39 -07:00
Jon Skeet
e67204752f
Remove legacy_enum_values flag for GA.
2016-07-27 09:12:48 +01:00
Feng Xiao
12581b4c8e
Fixes traivs cpp build.
...
Remove the use of INT64_C/UINT64_C and add static_cast when neccessary.
2016-07-26 11:59:39 -07:00
Josh Haberman
43b36dd983
Fixed Makefile.am for Ruby file rename.
2016-07-26 10:28:18 -07:00
Josh Haberman
b3b07cd851
Merge branch 'master' into 3.0.0-GA
...
We need to pick up some of the last-minute Ruby fixes.
2016-07-25 17:39:07 -07:00
Josh Haberman
6cab568e0b
Ruby: translate package names from snake_case -> PascalCase.
2016-07-25 15:15:44 -07:00
Joshua Haberman
b1cecb6762
Merge pull request #1837 from haberman/rubygencodename
...
Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.
2016-07-25 14:58:41 -07:00
Feng Xiao
a17367f44a
Define intX as standard exact-width integer types.
...
Fixes https://github.com/google/protobuf/issues/823
Change-Id: I7f4c2bfcac2f81d8b34c030dd3d12ea02aaa2264
2016-07-25 13:18:38 -07:00
Josh Haberman
4f19797baf
Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.
...
This brings us more into line with other langauges, and makes it more
obvious when we are requiring protobuf generated code.
2016-07-25 11:09:23 -07:00
Sergio Campama
3a1259cb45
Correctly sets the generate_for_named_framework option after parsing.
...
- Also updates the documentation with a bit more information.
2016-07-23 21:37:53 -04:00
Feng Xiao
1b3796c890
Merge pull request #1829 from xfxyjwf/fixcpp
...
Fix sign-comparison warnings and add a test for that.
2016-07-23 00:24:07 +00:00
Feng Xiao
9009662b71
Fix sign-comparison warnings in public header files.
2016-07-22 21:41:17 +00:00
Feng Xiao
16adea3ddc
Add a test to catch sign-comparison warnings.
...
grpc build treates them as errors and such issues (protobuf change
breaks grpc) has been reported repeatedly. For example:
https://github.com/google/protobuf/issues/1813
Change-Id: I077c4557cf3effd5195f88802c38999b884edc30
2016-07-22 14:15:40 -07:00
Sergio Campama
2ff93494a7
Fixes the parsing of the proto-framework map file.
...
- Fixes memory issue where the pointer to the StringPiece would be allocated on the stack, and would mangle the output.
- Fixes length of the file name when parsing the comma separated files.
2016-07-22 12:56:36 -04:00
Feng Xiao
af8732ec11
Merge pull request #1810 from xfxyjwf/versioning
...
Versioning Java GeneratedMessage class
2016-07-20 20:52:21 +00:00
Feng Xiao
60cb094b7b
Add files missing from "make dist".
...
Change-Id: I56a6cce613462794f172ff2e62b25d8a9fc162f3
2016-07-19 16:15:42 -07:00
Feng Xiao
2e30301837
Versioning Java GeneratedMessage.
...
Change-Id: Ib2bb5042deaabdf452d5be2ad1ce40d739ad8d1b
2016-07-19 14:32:51 -07:00
Nikolai Vavilov
e4b129f304
restore old behavior for toObject
2016-07-19 10:34:58 +03:00