| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |\ \ \ \ |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix spelling error of __GNUC_MINOR__
|
| | |/ / / /
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Support using MSVC intrinsics in Log2FloorNonZero
|
| |/ / / / |
|
| |/ / /
|/| | |
| | | |
| | | | |
This reverts commit 724f0be33d0eb42055ebe81ce0c8c7bf88ea666c.
|
|\ \ \ \
| | | | |
| | | | | |
Add support for libc++ on Windows.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This disables a couple of workarounds which are only necessary with
MSVC's standard library and cause problems with libc++.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Blacklist all WELL_KNOWN_PROTOS from Bazel C++ code generation.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This lets all values of `WELL_KNOWN_PROTOS` be treated the same with
regard to Bazel's protobuf blacklisting.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Adds an option in C++ JSON parser to ignore unrecognized enum values
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
unrecognized string values in enum fields as default ones.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Rename a shadowed variable.
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Shadowed variables can cause readability issues. Ensure a shadowed
variable isn't used in header files which may be used in a dependent
project that explicitly disables them.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Remove unused output_file variable from js_embed
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The js_embed tool outputs to stdout, so the output_file variable is
unnecessary and unused.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Chrome is running into two issues with the use of this macro
in open-source protobuf (https://crbug.com/809157):
1. GOOGLE_FALLTHROUGH_INTENDED is defined to nothing on __APPLE__
platforms, which blocks us from enabling -Wimplicit-fallthrough
on Mac and iOS. (We use a hermetic self-built modern clang,
so whatever Xcode bug that exclusion might be for doesn't apply
to us.)
2. It's in a public header file, and it's included in a public header file.
When clang suggests adding [[clang::fallthrough]], it checks if it knows of
a macro expanding to that and if so, suggests inserting that. Since lots of
chrome code includes protobuf headers, it often suggests inserting
GOOGLE_FALLTHROUGH_INTENDED (from protobuf) instead of the correct
FALLTHROUGH (from chrome's base).
Since the fallthrough doens't do anyting useful, just remove it.
Long ago, this might have had perf impact, but d64a2d9941c36a7bc added a
parsing fast path that calls this switch as slow fallback, so it should
be off the hot path nowadays.
No intended behavior change.
This is the public version of internal change 184824132.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Create std::string in Arena memory
|
| | | | | |
| | | | | |
| | | | | | |
'<:' is an alternate spelling for '['.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes issue #1154 by noting that `vcpkg` contains protobuf. Potential improvements: also remark how to use `vcpkg` to get dependencies when building from source via CMake.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Java: Generate warning free code
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Partially fixes #4230.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
These statements pulled a bunch of symbols from the std namespace into
the global namespace. This commit removes all of them except for
std::string, which is a bit trickier to remove.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Remove the use of BUILT_SOURCES
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes https://github.com/google/protobuf/issues/3912
[BUILT_SOURCES](https://www.gnu.org/software/automake/manual/html_node/Sources.html)
is used with [Automake's automatic dependency tracking](https://www.gnu.org/software/automake/manual/html_node/Dependencies.html#Dependencies)
but doesn't work well in protobuf when cross-compiling. Their presence
causes maek to always generate them even when they are not requested
and as a result causes cross-compilation to fail because the built protoc
cannot be used to generate unittest protos (see: https://github.com/google/protobuf/issues/3912).
Removing it with explicit dependencies fixes the build issue when running
'make', 'make all', 'make install' at cross-compilation. It doesn't affect
'make protoc' because BUILT_SOURCES only works for the implicit targets
'all', 'check' or 'install'.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The generated code for enums needs atomics support, so generate the
import instead of relying on it via transitive imports. This will
make future changes to this likely likely to break generated code
and runtime support are mixed.
Followup to https://github.com/google/protobuf/pull/4184.
|
| |/ / /
|/| | |
| | | |
| | | | |
* Migrate away from deprecated OSAtomic APIs.
|
|\ \ \ \
| | | | |
| | | | | |
Add more tests to time_test
|
| | | | |
| | | | |
| | | | | |
Better test coverage for datetime validation.
|
|/ / / /
| | | |
| | | |
| | | | |
Found with PVS-Studio static analyser, see
https://www.viva64.com/en/b/0550/
|
|\ \ \ \ |
|
| | | | | |
|
|\| | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
Add support for Windows ARM64 build
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Cherrypick for csharp, including:
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Add preserve UnknownFields
Compare floating point values bitwise
Add auto-generated header to C# generated files
|
| | |/ / / /
| |/| | | | |
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Replace C++11 only method std::map::at
|
| | |/ / / / |
|
| |/ / / / |
|
| |\ \ \ \
| | | | | |
| | | | | | |
Create containing directory before generating well_known_types_embed.cc
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This fixes the following build error:
oldpwd=`pwd` && cd .../protobuf/src && \
$oldpwd/js_embed google/protobuf/compiler/js/well_known_types/any.js google/protobuf/compiler/js/well_known_types/struct.js google/protobuf/compiler/js/well_known_types/timestamp.js > $oldpwd/google/protobuf/compiler/js/well_known_types_embed.cc
/bin/bash: line 1: .../protobuf/target/src/google/protobuf/compiler/js/well_known_types_embed.cc: No such file or directory
Makefile:8201: recipe for target 'google/protobuf/compiler/js/well_known_types_embed.cc' failed
which is observed during the cross-compilation since the version 3.2.
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
Use matching enum type for IsPOD.
|
| | | | | | | |
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Before the change, an implicit Flush() will be triggered in the
destructor of the input stream. However, the return code of Flush() is
not discarded. This change makes sure when Flush() fails, we will
return false.
|