Wayne Zhang
d6470abef1
not to use std::random_device for map.Seed(). ( #3133 )
...
* not to use std::random_device for map.Seed().
* remove include random
8 years ago
Paul Yang
282fb9e68e
Add ARRAY for reserved name ( #3150 )
8 years ago
Brent Shaffer
4d5daf4ef9
Adds fluent setters for PHP ( #3130 )
8 years ago
lundefugl
aea4374393
Issue 3112: Object class with fully qualified name
8 years ago
brian-peloton
40da1ed572
Removing undefined behavior and compiler warnings ( #1315 )
...
* Comment out unused arguments.
These last few are all that's needed to compile with -Wunused-arguments.
* Fix missing struct field initializer.
With this fix, everything compiles with -Wmissing-field-initializers.
* Add support for disabling unaligned memory accesses on x86 too.
ubsan doesn't like these because they are technically undefined
behavior, so -DGOOGLE_PROTOBUF_DONT_USE_UNALIGNED will disable them easily.
* Avoid undefined integer overflow.
ubsan catches all of these.
8 years ago
Dennis Cappendijk
3b227611d5
show help if protoc is called without any arguments, pre-empts -h and --help to show a useful message instead of just 'Missing input file.'
8 years ago
Steven Peters
969e0bece2
regenerate plugin and profile message code
8 years ago
Steven Peters
26f00119f2
Use bool deterministic to suppress warning
...
Fixes #3059 by re-applying 08b1c718
from #3087 .
8 years ago
Feng Xiao
757cc9f9da
Update C++ generated code.
8 years ago
Feng Xiao
58538ea919
Update version number to 3.3.1
8 years ago
Mario J. Rugiero
9b82fce7f1
Workaround gcc < 4.5.0 bug
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=189
Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
8 years ago
randomguy3
e062f70c6d
Fix compilation
...
<: is a digraph, so a space is necessary for compilation on certain compilers.
8 years ago
Alex Merry
e82d81a884
Fix offset type to match the tables it is used in
8 years ago
Mario J. Rugiero
cd0efc0024
Workaround gcc < 4.5.0 bug
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=189
Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
8 years ago
Feng Xiao
7378ec2bc8
Add missing LIBRPOTOC_EXPORT.
8 years ago
Feng Xiao
3a5a0724f3
Skip C# test in C++ only distribution.
8 years ago
Feng Xiao
8859c07a35
Add missing files to build files.
8 years ago
Chris Nix
c3093d3ee5
Fix issue 3046: compilation on alpine 3.5
8 years ago
Adam Cozzette
07c284f86c
Fully qualify min as std::min in wire_format_lite.cc
8 years ago
Paul Yang
a6189acd18
Add prefix to enum value with reserved name. ( #3020 )
8 years ago
Adam Cozzette
7c76ac1735
Remove "using namespace std" from stubs/common.h
...
This prevents the contents of the std namespace from being effectively
pulled into the top-level namespace in all translation units that
include common.h. I left in individual using statements for a few common
things like std::set and std::map, because it did not seem worth going
through the churn of updating the whole codebase to fix those right now.
8 years ago
Jakob Buchgraber
b1c75bc742
Remove unused constants.
...
When compiling with -Werror, -Wunused-const-variable the build fails due
to those two constants not being used.
8 years ago
Paul Yang
4523c9c233
Allow proto files to import descriptor.proto ( #2995 )
...
descriptor.proto uses proto2 syntax, which is not ready for external
usage. However, some proto3 files import descriptor.proto and cannot be
used. In this PR, all references (We cheated by only removing
extensions, which is enough for now. User should avoid using messages
defined in descriptor.proto as field type.) to content in
descriptor.proto are removed from generated files. Those that import
descriptor.proto can be used like other proto files.
8 years ago
Paul Yang
4c57e8475f
Prepend "PB" to generated classes whose name are reserved words. ( #2990 )
8 years ago
Paul Yang
7be088202b
Enum defined without package have incorrect class name. ( #2988 )
...
Fix the bug by sharing the code for generating class name for both
message and enum.
8 years ago
Michael Allen
2240a785f9
Simplify the Element dtor invocation when freeing elements in
...
InternalDeallocate to avoid confusing the compiler when there's
a class named Element already defined in the global namespace.
8 years ago
Feng Xiao
5777259273
Cherry-pick cl/152450543
8 years ago
Feng Xiao
cad0258d17
Cherry-pick cl/151775298
8 years ago
Jie Luo
899460c9cb
cherrypick descriptor_pool.FindFileContainingSymbol by extensions ( #2962 )
...
* Use PyUnicode_AsEncodedString() instead of PyUnicode_AsEncodedObject()
* Cherrypick the fix descriptor_pool.FindFileContainingSymbol by extensions.
8 years ago
Feng Xiao
bfeeb98517
Add include for INT_MAX
8 years ago
Anuraag Agrawal
bf483dfb99
Allow unknown values for Map put*Value methods just like every other enum mutation method.
8 years ago
Feng Xiao
ee9c7f17e9
Cleanup reflection objects for map entry.
8 years ago
Feng Xiao
21b0b3ca36
Update generated code.
8 years ago
Feng Xiao
80f0c0ac40
Update version number and changelog for 3.3.0
8 years ago
Feng Xiao
d5827784cf
Fix C++ distcheck.
8 years ago
Feng Xiao
fe97d79abf
Fix MSVC DLL build.
8 years ago
Feng Xiao
d36c0c538a
Down-integrate from google3.
8 years ago
Juan David Dominguez
4a0dd03e52
Removes ignored const from return type ( #2915 )
...
See https://github.com/google/protobuf/issues/2425
8 years ago
drivehappy
d43eaf2b8f
Fix gcc warning when using map ( #2213 )
...
* Issue #2211 : Addressing GCC warning on enumeral/non-enumeral in conditional expression.
* Updated per 80 character wrap.
8 years ago
Adam Cozzette
f316375a95
Added a workaround to allow building for NaCl
...
arm-nacl-clang seems to produce a mysterious compiler error when it
encounters __builtin_clzll, so when we are building for NaCl, let's
avoid that in favor of the portable implementation of
Log2FloorNonZero64.
8 years ago
Paul Yang
6b27c1f981
Add file option php_class_prefix ( #2849 )
...
This option will be prepended to generated classes of all messages in
the containing file.
8 years ago
Bairen Yi
e8e6aa2864
Update delimited_message_util_test.cc
8 years ago
Brendan McCarthy
89eb4e51b2
Add option to preserve original proto field names
8 years ago
Brendan McCarthy
1eee3202fc
Add use_snake_case_for_field_names option to JsonPrintOptions
8 years ago
Byron Yi
c415a1445b
fix several issues
8 years ago
Josh Haberman
0df20284d0
Properly regenerated descriptor.proto.
8 years ago
Byron Yi
7008a88e2b
add LIBPROTOBUF_EXPORT to make msvc happy
8 years ago
Byron Yi
cb3e84b78e
migrate delimited messages functions to util package
8 years ago
prehistoric-penguin
33cc25f36c
Remove duplicated copyright statement
8 years ago
Josh Haberman
e62e30c309
Changed go_package for plugin.proto.
...
For more info see: https://github.com/google/protobuf/issues/1289
8 years ago