Chris Kennelly
3f5a6af059
Remove DeleteReturnArena. It can be entirely replaced with Delete.
...
PiperOrigin-RevId: 532123324
2 years ago
Protobuf Team Bot
ab678477cd
Updates supported PHP versions.
...
This update addresses the issue raised in [GitHub Issue #12760 ](https://github.com/protocolbuffers/protobuf/issues/12760 ).
PiperOrigin-RevId: 532116533
2 years ago
Matt Kulukundis
e6adc6d3cd
Move has bit machinations from field to message in prep for switching to emit calls.
...
PiperOrigin-RevId: 531820191
2 years ago
Matt Kulukundis
02d133cd51
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531819949
2 years ago
Matt Kulukundis
8ccd7661fd
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531819703
2 years ago
Matt Kulukundis
e4aef7ff21
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531819518
2 years ago
Matt Kulukundis
99e2340a56
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531819145
2 years ago
Protobuf Team Bot
5a2926ad7e
Auto-generate files after cl/531814944
2 years ago
Matt Kulukundis
6e55a3f14e
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531814944
2 years ago
Mike Kruskal
17a2d53176
Internal changes
...
PiperOrigin-RevId: 531664397
2 years ago
Mike Kruskal
748579e321
Internal changes
...
PiperOrigin-RevId: 531636411
2 years ago
Mike Kruskal
c01c2e3859
Internal changes
...
PiperOrigin-RevId: 531631350
2 years ago
Mike Kruskal
8234e3ec56
Internal changes
...
PiperOrigin-RevId: 531626077
2 years ago
Protobuf Team Bot
902af9abf7
Auto-generate files after cl/531610557
2 years ago
Protobuf Team Bot
45469f2edd
Clean up internal links/documentations exposed to the open source.
...
Mark ExtensionRangeOption.declaration "DO NOT USE" in open source for the time being.
PiperOrigin-RevId: 531610557
2 years ago
Protobuf Team Bot
04e19c8b6a
Update MessageDifferencer to collect the name of no presence fields that were forced into the compare list and which have caused the comparison to fail.
...
PiperOrigin-RevId: 531606719
2 years ago
Protobuf Team Bot
f0de774705
Migrate repeated numeric fields to use bit field to track presence instead of using it to indicate the field mutability to potentially skip work on the field during build operations.
...
PiperOrigin-RevId: 531589847
2 years ago
Protobuf Team Bot
ad67472fea
Auto-generate files after cl/531568752
2 years ago
Chris Kennelly
1f0da1ba11
Remove vestigal check for non-nullptr Arenas.
...
When we are running the destructor, we do not have an Arena. Since the Arena
is a runtime property, the compiler may not be able to optimize it out.
PiperOrigin-RevId: 531568752
2 years ago
Mike Kruskal
83c954890e
Tweak ExtensionRange to look more like other descriptors.
...
This implements some cross-linking for traversing back up the tree, and some uniformity to aid templatized descriptor helpers. Later changes will make the previously public fields private
PiperOrigin-RevId: 531547696
2 years ago
Protobuf Team Bot
a52eb77fdd
Auto-generate files after cl/531505892
2 years ago
Carlos O'Ryan
246c9de76c
fix: avoid warnings with MSVC ( #12762 )
...
In both cases a `size_t` was being converted to a `uint32_t`. These headers are used from application code, or at least from generated code, and the application may be compiling with more warnings enabled than normal.
Closes #12762
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12762 from coryan:fix-avoid-warnings-with-MSVC 5ba6b5db1e
PiperOrigin-RevId: 531506224
2 years ago
Protobuf Team Bot
c3e2efe70b
Turn on the table-driven parser by default, as it is no longer experimental.
...
This parser reduces binary code size between 1% and 20%, particularly of debug and sanitized builds, while improving aggregate performance.
Micro benchmarks may regress, but large system performance improves.
PiperOrigin-RevId: 531505892
2 years ago
Protobuf Team Bot
56d1b0f3f5
Add proto hooks for unknown fields.
...
PiperOrigin-RevId: 531306472
2 years ago
Protobuf Team Bot
0c51f796a4
Auto-generate files after cl/531271824
2 years ago
Matt Kulukundis
c4ad7b3627
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531271824
2 years ago
Protobuf Team Bot
903968a548
Rollback the behavior of using `constexpr` on `_table_` instances for all types except for the types in descriptor.proto
...
DLLs get in the way of making these tables constexpr in the general case because cross-DLL references are not constant.
However, we need descriptor.proto tables to be constexpr so we keep constexpr there were we know it works. They do not reference other DLLs.
PiperOrigin-RevId: 531256398
2 years ago
Protobuf Team Bot
a46bc0d7d7
Automated rollback of commit a2abe0f6d3
.
...
PiperOrigin-RevId: 531251432
2 years ago
Protobuf Team Bot
35f24de511
Auto-generate files after cl/531238423
2 years ago
Matt Kulukundis
fc01c2ec56
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 531238423
2 years ago
Mike Kruskal
ef39d27a0f
Internal changes
...
PiperOrigin-RevId: 531223460
2 years ago
Mike Kruskal
b0be4f8738
Internal changes
...
PiperOrigin-RevId: 531222261
2 years ago
Protobuf Team Bot
a2abe0f6d3
Update MessageDifferencer to collect the name of no presence fields that were forced into the compare list and which have caused the comparison to fail.
...
PiperOrigin-RevId: 531207122
2 years ago
Protobuf Team Bot
20d22a92fe
Automated rollback of commit 64cf6ff6e0
.
...
PiperOrigin-RevId: 531014508
2 years ago
Jason Lunn
dc1387e41d
Add explicit handling for sub messages. ( #12540 )
...
Fixes issue #12505 .
Also add a regression test.
Closes #12540
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12540 from JasonLunn:fix_12505 24ac3ecd86
PiperOrigin-RevId: 531001738
2 years ago
Alexey Edelev
d372fcded6
CMake: Use the correct jsoncpp target name in static builds ( #12733 )
...
When building protobuf with BUILD_SHARED_LIBS disabled, conformance_test_runner should link jsoncpp_static but not jsoncpp_lib.
Closes #12733
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12733 from semlanik:main 2ab4be6bb0
PiperOrigin-RevId: 530926843
2 years ago
Protobuf Team Bot
027d8dfe36
Improve map tests:
...
- Make sure the hash flooding test actually does hash flooding. The technique used to choose the inputs stopped working when random seeding was added. Now we assert trees are used in the test so it won't silently break again.
- Improve test coverage for tree buckets.
- Update the hash flood test to use absl::Time/Duration.
- Improve the map tests to use long strings. This way we can test that the values are being properly destroyed. Small strings could be leaked without side effects because of SSO.
PiperOrigin-RevId: 530917835
2 years ago
Protobuf Team Bot
64cf6ff6e0
Add missing `PROTOBUF_EXPORT` to `_table_` static data members for MSVC shared library builds.
...
PiperOrigin-RevId: 530907946
2 years ago
Protobuf Team Bot
95c5ed23ef
When field tracking is enabled, use the normal base class.
...
PiperOrigin-RevId: 530711262
2 years ago
Mike Kruskal
d4ef42aa9b
Fix C++17 gcc issues.
...
This also adds tests for C++17 and C++20 to prevent further regressions.
PiperOrigin-RevId: 530693318
2 years ago
Protobuf Team Bot
3e7c5bfc19
Auto-generate files after PR #12721
2 years ago
Protobuf Team Bot
ea0fc88f30
Auto-generate files after cl/530663959
2 years ago
deannagarcia
0e23f18865
Merge to main after 23.0 release ( #12721 )
...
Closes #12721
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12721 from protocolbuffers:main-202305082101 36482b4c68
PiperOrigin-RevId: 530664393
2 years ago
Matt Kulukundis
e75529d9a0
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 530663959
2 years ago
Protobuf Team Bot
b928629253
Do on-demand initialization of global default instances for FileDescriptorProto in MSVC. MSVC will not properly constant initialize them, and they are needed during registration for parsing, which could happen before FileDescriptorProto TU's dynamic initializers run.
...
PiperOrigin-RevId: 530635887
2 years ago
Protobuf Team Bot
d84d0bbc72
Auto-generate files after cl/530630251
2 years ago
Matt Kulukundis
885c8ec339
Incremental migration of message.cc to Emit
...
PiperOrigin-RevId: 530630251
2 years ago
Protobuf Team Bot
67d9ea87f3
Internal change
...
PiperOrigin-RevId: 530619366
2 years ago
deannagarcia
ad4dcd8765
Merge pull request #12721 from protocolbuffers/main-202305082101
...
Merge to main after 23.0 release
2 years ago
Protobuf Team Bot
c78b0f10b7
Internal Change
...
PiperOrigin-RevId: 530601400
2 years ago