Commit Graph

2966 Commits

Author SHA1 Message Date
Manjunath Kudlur
a194921527 Made building the python extension configurable via --define=use_fast_cpp_protos=true 2015-12-08 08:24:37 -08:00
Manjunath Kudlur
3f9b4f2944 Updated for c++98 compatibility 2015-12-07 14:15:29 -08:00
Manjunath Kudlur
3ff1dca0bd Enable fast cpp protos in the python interface. 2015-12-07 13:08:21 -08:00
Thomas Van Lenten
9bd74b7f25 Merge pull request #1027 from thomasvl/more_nullable_support
Enable CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION for the projects.
2015-12-07 11:41:49 -05:00
Thomas Van Lenten
c27833b632 Enable CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION for the projects. 2015-12-07 10:49:30 -05:00
Jisi Liu
b1b9c254e2 Merge pull request #1024 from martinmaly/wkt
Making _genproto rules public.
2015-12-05 09:39:25 -08:00
Joshua Haberman
ba6a28ea9c Merge pull request #1022 from haberman/python-conformance2
Conformance test implementation for Python.
2015-12-04 19:45:50 -08:00
Martin Maly
8e0c9a3f11 Making _genproto rules public.
This enables other xx_proto_library targets to depend on xx_proto_library
targets in different packages, and specifically on xx_wkt_protos.
2015-12-04 17:53:07 -08:00
Joshua Haberman
01e00d251b Merge pull request #1023 from girving/py3
Add srcs_version = "PY2AND3" in BUILD files
2015-12-04 15:57:31 -08:00
Josh Haberman
874eb3648e Remove all bare strings as exceptions. 2015-12-04 15:03:12 -08:00
Geoffrey Irving
29799238c2 Add srcs_version = "PY2AND3" in BUILD files
The sources themselves appear to already be Python 3 clean.
2015-12-03 13:16:06 -08:00
Josh Haberman
4b31ffa488 Added Python failure lists, and fixes to make sure failure propagates. 2015-12-03 12:54:54 -08:00
Jisi Liu
dbc91e9797 Merge pull request #1014 from damienmg/master
Fix headers for gmock.BUILD
2015-12-03 10:16:38 -08:00
Josh Haberman
a3faf080e3 Added JSON support to Python conformance tests. 2015-12-02 13:21:42 -08:00
Josh Haberman
325392dd61 Conformance test implementation for Python. 2015-12-02 12:53:42 -08:00
Thomas Van Lenten
77d56e3e83 Merge pull request #1021 from thomasvl/fix_err_msg
Tweak the error message as the generate is in the core binary these d…
2015-12-02 14:45:13 -05:00
Thomas Van Lenten
536059e569 Tweak the error message as the generate is in the core binary these days. 2015-12-02 14:43:29 -05:00
Thomas Van Lenten
20b4e84f42 Merge pull request #1020 from thomasvl/block_nil
Check and throw errors for nil values/keys (like NSDictionary).
2015-12-02 14:15:03 -05:00
Thomas Van Lenten
764a2248cc Merge pull request #1019 from thomasvl/correct_conformance_compile
Ensure the conformance build of objc code is using the Mac OS X SDK
2015-12-02 13:34:05 -05:00
Thomas Van Lenten
c3a0cf74fe Check and throw errors for nil values/keys (like NSDictionary). 2015-12-02 12:53:35 -05:00
Thomas Van Lenten
69d713fc3c Ensure the conformance build of objc code is using the Mac OS X SDK and 2015-12-02 11:48:14 -05:00
Jon Skeet
e4af879ba2 Merge pull request #1000 from jskeet/any-format
JSON handling for Any
2015-12-02 08:59:44 +00:00
Jon Skeet
3de2fced6b Handle JSON parsing for Any.
This required a rework of the tokenizer to allow for a "replaying" tokenizer, basically in case the @type value comes after the data itself. This rework is nice in some ways (all the pushback and object depth logic in one place) but is a little fragile in terms of token push-back when using the replay tokenizer. It'll be fine for the scenario we need it for, but we should be careful...
2015-12-02 07:54:34 +00:00
Jon Skeet
567579b505 JSON formatting for Any. 2015-12-02 07:26:55 +00:00
Feng Xiao
bdabaeb03d Merge pull request #1016 from tswast/tutorial-regions
Add region tags for protocol buffers tutorials.
2015-12-01 18:00:31 -08:00
Tim Swast
bc4723481a Add region tags for protocol buffers tutorials.
Since these tags might be confusing, added a note that these are not
part of the normal protocol buffers syntax.  I also linked to the main
tutorials page that uses these examples
https://developers.google.com/protocol-buffers/docs/tutorials so that
anyone who arrived here without going through that info first can get
more explanation if they want.
2015-12-01 17:07:18 -08:00
Damien Martin-Guillerez
cc42db83d3 Fix headers for gmock.BUILD
Bazel 0.1.2 fix strict header checks and sandboxing for C++
rules. This change add the necessary headers for gmock so
the headers get shipped in the sandbox.
2015-12-01 22:52:42 +01:00
Feng Xiao
1a59a715dc Merge pull request #998 from tswast/goexample
Add a Go language example.
2015-11-30 13:43:56 -08:00
Feng Xiao
f4e4be6386 Merge pull request #1011 from c0nk/wip-implicit-cast-fix
Fix some narrowing implicit casts [NFC]
2015-11-30 10:40:51 -08:00
Kal Conley
a52539a32d Fix some narrowing implicit casts [NFC] 2015-11-28 20:22:25 -08:00
Feng Xiao
d3cb5f4078 Merge pull request #1007 from dlh3/patch-1
Fix minor typo in LazyField javadoc
2015-11-25 11:04:05 -08:00
Tim Swast
7e31c4d930 Add a Go language example.
This follows the other examples so that it can be used as a tutorial,
such as the ones at:
  https://developers.google.com/protocol-buffers/docs/tutorials

Even though Go generally does not use Makefiles, I added targets for the
Go examples to be consistent with the other languages.

Edit:

Fix Travis run. Change to use $HOME instead of ~. Add protoc to path.
GOPATH entry cannot start with shell metacharacter '~': "~/gocode"

Edit(2):

Fix Go code style to address comments.
2015-11-25 10:46:35 -08:00
Dave Hughes
62c4efa1d6 Fix typo in LazyField javadoc
"equals".equals("euqals") == false
2015-11-24 22:39:23 -08:00
Feng Xiao
d8b6452e37 Merge pull request #1005 from oon3m0oo/emscripten
Adds support for building protobuf with emscripten
2015-11-24 15:22:06 -08:00
Craig Donner
8e869f7627 Adds support for buliding protobuf with emscripten; we just needed the proper platform define used in the right place. 2015-11-24 15:07:18 -08:00
Thomas Van Lenten
b640f216a5 Merge pull request #1003 from sainaetr/patch-1
Update GPBProtocolBuffers.h
2015-11-23 17:37:36 -05:00
Osman Cihangir
f1e14fba23 Update GPBProtocolBuffers.h 2015-11-24 00:16:29 +02:00
Thomas Van Lenten
bc6a85dbac Merge pull request #1001 from thomasvl/fix_last_objc_conformance_tests
Set the stream limit to the length of the data.
2015-11-23 14:08:11 -05:00
Thomas Van Lenten
ba800e2e57 Set the stream limit to the length of the data.
- Mark all conformance tests as now passing.
2015-11-23 12:23:27 -05:00
Thomas Van Lenten
4e3388168d Merge pull request #980 from thomasvl/obj_conformance
Add support for the conformance test for objc when run on OS X
2015-11-23 12:04:47 -05:00
Jon Skeet
41824d93e5 Merge pull request #990 from jskeet/naming
Tidying up reflection further
2015-11-22 19:59:11 +00:00
Jon Skeet
a2667aafd8 Generated code changes for previous commit (basically InternalBuildGeneratedFileFrom => FromGeneratedCode) 2015-11-22 16:30:36 +00:00
Jon Skeet
72ec33676f Tidy up reflection in advance of attempting to implement DynamicMessage.
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.
2015-11-22 16:25:44 +00:00
Jon Skeet
d6202a9b89 Merge pull request #994 from jskeet/type-registry
Added the type registry in advance of implementing Any support.
2015-11-22 16:24:27 +00:00
Jon Skeet
f7e43c6f80 Added the type registry in advance of implementing Any support.
Biting off just this bit first as I don't need the changes from a previous PR for this part.
2015-11-21 03:34:58 +00:00
Jan Tattermusch
956a770adc Merge pull request #988 from gabikliot/CSharp-SampleUsage-Big-Fix
Fixed a bug in CSharp SampleUsage.
2015-11-19 20:02:18 -08:00
Jan Tattermusch
562372e53a Merge pull request #989 from jskeet/rename-umbrella
Rename "umbrella" to "reflection" consistently.
2015-11-19 16:31:19 -08:00
Jisi Liu
fa8e2911bb Merge pull request #977 from lberki/master
add headers
2015-11-19 14:39:54 -08:00
Gabriel Kliot
bdec990703 Removed redundant comment. 2015-11-19 08:05:05 -08:00
Jon Skeet
a6361a124a Rename "umbrella" to "reflection" consistently.
This changes csharp_names.h, which will require a corresponding change in GRPC.
2015-11-19 13:05:17 +00:00