| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This fixes issue #832.
Generated code changes in next commit.
|
| |
|
|
|
|
|
|
|
|
| |
1. mathlimits.h must be included before the inclusion of cmath (which
gtest/gtest.h seems to include).
2. hash function for StringPiece doesn't work.
Change-Id: I358a25d941a25b10b39fe76780eda41557699811
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
VC++ up to VS 2015 RTM does not require explicit storage allocation for
static const integers declared in classes. VS 2015 Update 1 requires
these storage definitions in some cases. It's unclear exactly what
cases - simple tests work with and without the explicit storage
allocation.
Many previous versions of VC++ have theoretically *allowed* a
definition to supply storage, but tests on VC++ 2013 show that this
doesn't actually work correctly - it leads to duplicate definition
errors in Chromium. So, the change is scoped to VS 2015 only.
This change also updates the generated files to match the new generator.
TL;DR - this change is necessary in order for Chromium to build with
VS 2015 Update 1.
|
|\
| |
| | |
Use oneof case in equality tests
|
| |
| |
| |
| | |
The included C# test will fail until the regenerated code is used, which is in the next commit.
|
|/
|
|
| |
consistent with other protobuf library includes.
|
|\
| |
| | |
Improved CMake project
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Expose GetOutputFile in csharp_names.h
|
| | | |
|
|\ \ \
| | | |
| | | | |
Changed return type from int32 to bool in function returning a bool
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Use std::get where it's available
|
| | | | |
|
| | | |
| | | |
| | | | |
Used static cast to improve initalization compatibility with MSVC2010
|
| | | |
| | | |
| | | | |
VS2010 cannot compile json_util_test.cc since it assumes NULL as a zero (int), and therefore cannot convert into to char*
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This could be tidied up significantly, and at some point we will want to parse the markdown and generate more appropriate XML - but this is definitely better than nothing.
Generated code changes coming in next commit.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
(Generated code changes coming next...)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There are now summaries for:
- The Types nested class (which holds nested types)
- The file descriptor class for each proto
- The enum generated for each oneof
(Also fixed two typos.)
Generated code in next commit.
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
Handled blocks being too small in arena.cc
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When the user passed in a block which was smaller than the Block
structure, this code would blow past the end of the memory and
crash. Check for that condition.
|
| |\ \ \ \
| | | | | |
| | | | | | |
Generate C# directory hierarchy with new option
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This introduces a new C# option, base_namespace.
If the option is not specified, the behaviour is as before: no directories are generated.
If the option *is* specified, all C# namespaces must be relative to the base namespace, and the directories are generated relative to that namespace.
Example:
- Any.proto declares csharp_namespace = "Google.Protobuf.WellKnownTypes"
- We build with --csharp_out=Google.Protobuf --csharp_opt=base_namespace=Google.Protobuf
- The Any.cs file is generated in Google.Protobuf/WellKnownTypes (where it currently lives)
We need a change to descriptor.proto before this will all work (it wasn't in the right C# namespace) but that needs the other descriptors to be regenerated too. See next commit...
|
| | | |_|/
| | |/| | |
|
| | |_|/
| |/| |
| | | |
| | | | |
methods. This is to avoid "unresolved link" errors in MSVC 2015 during Release build
|
| |\ \ \
| | | | |
| | | | | |
Fix compile failures building protobuf DLLs on MSVC in Chromium's cod…
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When trying to compile the protobuf code as a DLL, and then compile other DLLs
with generated .pb.cc/h files that reference
InternalMetadataWithArena::InternalMetadataWithArena(Arena*), MSVC gives an
"unresolved external symbol" error. This seems to be due to the function being
simultaneously exported and inline. Moving it out-of-line fixes things.
There are other functions exported and inline as well but de-inlining them
doesn't seem to be necessary to get the build working, and I'd rather de-inline
as few functions as possible.
|
| |\ \ \ \
| | | | | |
| | | | | | |
Refine check for unordered_{map|set} availability.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's not enough to check for C++11 language support, as it's possible for
projects to enable C++11 language and library features independently (e.g.
Chromium currently does this). Instead, explicitly check the library version to
see if it is recent enough to include unordered_{map|set}.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It isn't always, which causes problems when trying to put negative
values into the array with C++11.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bazel expects all tests to do this.
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Xcode raises warning that says "'BYTE_SIZE' macro redefined".
The original 'BYTE_SIZE' macro definition is here, for example:
'/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/mach/vm_param.h'
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
src/google/protobuf/extension_set.h
|
| |\ \ \ \
| | | | | |
| | | | | | |
Move StringSpaceUsedIncludingSelf to lite library.
|