| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
C++: export _xxx_default_instance_ symbols
|
| | |
|
| |
| |
| |
| |
| | |
_xxx_default_instance_ symbols are used in inline functions. We have
to export them to avoid undefined reference link errors.
|
|\ \
| | |
| | | |
Add missing include in embed.cc
|
| |/
| |
| |
| |
| | |
This changes fixes "use of undeclared identifier 'assert'"
compilation error.
|
| |
| |
| |
| | |
1. Generate single file for each message.
2. Lazily initiate metadata.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Check the parent file options for deprecation when deciding to tag Messages
and Enums as deprecated.
- Within the generated source push/pop the warning for implementing deprecated
things around a deprecated class implementation.
- Annotate the methods generated for extension fields as deprecated.
- Add a testing .proto file that covers deprecated fields, messages, enums,
enum values and compile it into the unittests to confirm things compile
cleanly.
- Add a testing .proto file that uses the file level option to make everything
deprecated and compile it into the unittests to confirm things compile
cleanly.
|
|
|
|
|
|
|
|
|
|
|
| |
Currently the default for protobuf on Android is to silently drop all log
messages. This makes debugging difficult because things like GOOGLE_LOG(FATAL)
will crash the process without actually logging a useful error.
This CL changes the logging so that by default we send messages for all log
levels to logcat (and stderr). Users can override this by setting
GOOGLE_PROTOBUF_MIN_LOG_LEVEL. Also, that option was not being respected for
non-Android platforms so I went ahead and fixed that to make things consistent.
|
|
|
|
|
| |
fixed_address_empty_string symbol is used in an inline function.
We have to export it to avoid undefined reference link errors.
|
|\
| |
| | |
Add version number to plugin protocol.
|
| | |
|
|\ \
| | |
| | | |
OpenBSD correct endianess handling
|
| | |
| | |
| | |
| | | |
apropriate defines
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#1971)
* Factored Conformance test messages into shared test schema.
* Updated benchmarks to use new proto3 message locations.
* Fixed include path.
* Conformance: fixed include of Python test messages.
* Make maven in Rakefile use --batch-mode.
* Revert changes to benchmarks.
On second thought I think a separate schema for
CPU benchmarking makes sense.
* Try regenerating C# protos for new test protos.
* Removed benchmark messages from test proto.
* Added Jon Skeet's fixes for C#.
* Removed duplicate/old test messages C# file.
* C# fixes for test schema move.
* Fixed C# to use the correct TestAllTypes message.
* Fixes for Objective C test schema move.
* Added missing EXTRA_DIST file.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Swift generators should default to CamelCasing the proto package and prefixing
symbols with that, but this option allows developers to override that behavior
with something custom if they desire.
Fixes https://github.com/google/protobuf/issues/1833
|
|\ \
| | |
| | | |
Integrated internal changes from Google
|
| | |
| | |
| | |
| | |
| | |
| | | |
This seems to be necessary to prevent warnings in some compiler
configurations, particularly for tag numbers that are too large to fit
in a signed 32-bit int.
|
| | | |
|
| |\ \ |
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
Behavior of define GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER has been
altered between 337a028 and cc8ca5b for C++.
See github issue #2385 for further details.
|
| | |
| | |
| | | |
Some compiler will report: 'error: integer constant is too large for long type'
|
| | |
| | |
| | |
| | | |
In php, class name cannot be "Empty". Modified code generator to (#2375) generate GPBEmpty instead (for google.protobuf.Empty only). Also change
runtime code to work with the new generated code accordingly.
|
|\ \ \
| | | |
| | | | |
Add missing include in message_lite.cc
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This changes fixes "use of undeclared identifier 'INT_MAX'"
compilation error.
|
|/ / /
| | |
| | |
| | | |
Reland commit f2885f6 that has been trampled by commit d64a2d99.
|
| | |
| | |
| | |
| | |
| | | |
StringSpaceUsedExcludingSelf has been part of the lite library since
b913cbd.
|
|\ \ \
| | | |
| | | | |
MessageOptions should handle both proto2 and google.protobuf package names.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
MessageOptions.
This is done so that the same library can be used irrespective of whether MessageOptions belong to package name 'proto2' or 'google.protobuf'
|
|\ \ \ \
| |/ / /
|/| | | |
Fixes deprecation warnings/errors on Xcode
|
| | | |
| | | |
| | | |
| | | | |
mac version to that if atomic is enabled
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The size parameter is only used in cases where the compiler supports
sized delete, so when that's not available we need to specifically cast
it to void to prevent a warning.
|
|\ \ \
| | | |
| | | | |
[arm/gcc] Don't rely on KUSER_HELPERS feature for atomics
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ARM specific CONFIG_KUSER_HELPERS feature can be disabled in Linux kernel,
and in this case, we shouldn't crash. Use gcc built-in functions instead
of arm specific code if they are available.
|
|\ \ \ \
| | | | |
| | | | | |
generic atomicops: Use strong compare_exchange
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Weak compare-and-exchange are allowed to fail spuriously, so we have
to use the strong variation here.
|
|/ / /
| | |
| | | |
When running >bazel test :protobuf_test a few compiler warnings came up. They were centered around the usage of "int" as the loop counter where the value should have been a size_t.
|
| |/
|/| |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
|
| |\
| | |
| | | |
Fix MSVC build when HAVE_LONG_LONG is defined.
|
| | | |
|
| |\ \
| | | |
| | | | |
Fixed references to foreign nested messages with CommonJS-style imports
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A bug was causing generated JSPB code with CommonJS-style imports to
refer incorrectly to nested messages from other .proto files. The
generated code would have things like "test_pb.InnerMessage" instead of
"test_pb.OuterMessage.InnerMessage". This commit fixes the problem by
correctly taking into account any message nesting.
|
| |/
| |
| |
| |
| |
| |
| |
| | |
There seem to already be .proto files out there that have conflicting
enum names, which will not be able to build successfully for some
languages (like C#). To prevent this problem from spreading, let's make
it an error for proto3 but just issue a warning for proto2. This fixes
issue #2179.
|
| | |
|