Protobuf Team Bot
6b36eb633c
Auto-generate files after cl/616648878
1 year ago
Protobuf Team Bot
9f65af7e76
Automated rollback of commit 5c183bda86
.
...
PiperOrigin-RevId: 616648878
1 year ago
Protobuf Team Bot
f06ae6c4fa
Auto-generate files after cl/616461373
1 year ago
Protobuf Team Bot
5c183bda86
Clear oneof message fields even on arena on non-OPT builds.
...
PiperOrigin-RevId: 616461373
1 year ago
Mike Kruskal
15c733eef7
Internal changes
...
PiperOrigin-RevId: 616324144
1 year ago
Thomas Köppe
57f3065459
Declare and define explicit template instantiations, since the required specializations are needed at a point where the primary template is not defined.
...
PiperOrigin-RevId: 616297036
1 year ago
Mike Kruskal
88e0495a78
Fix remaining locale issues in PHP generator causing flakes.
...
PiperOrigin-RevId: 616289767
1 year ago
Mike Kruskal
8a3430bd1a
Fix locale issue with ::tolower in PHP generator
...
PiperOrigin-RevId: 616270918
1 year ago
Mike Kruskal
bca8fb6117
Implement edition 2023 support in all Ruby runtimes.
...
Three of these runtimes are based on upb, and the fourth is based on the Java runtime. Both of these already have editions support, so this was mostly just a matter of:
- Advertising support to allow editions codegen
- Stripping features from the runtime options
- Hooking up conformance tests
- Adding some lightweight editions tests
There are also a few minor orthogonal fixes included here:
- Ruby's upb hack for treating all enums as open enums needed tweaking
- The `enable_editions` flag is no longer needed in our internal proto rules
PiperOrigin-RevId: 616256211
1 year ago
Protobuf Team Bot
c6c7d21f6e
IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 616207739
1 year ago
Protobuf Team Bot
67816a54a9
Add "NO CHECKED-IN PROTOBUF GENCODE" to Protobuf Java gencode.
...
PiperOrigin-RevId: 616131629
1 year ago
Mike Kruskal
0a6a117ed3
Remove remaining uses of ctype, which has locale issues.
...
PiperOrigin-RevId: 615981920
1 year ago
Chris Kennelly
2ee72715e0
Automated Code Change
...
PiperOrigin-RevId: 615873441
1 year ago
Protobuf Team Bot
f72c45ff75
Change .submsg_mut() to return $Msg$Mut instead of FieldEntry<$Msg$>.
...
PiperOrigin-RevId: 615849358
1 year ago
Protobuf Team Bot
958dd59892
Remove the public _mut() accessors from string fields.
...
PiperOrigin-RevId: 615824279
1 year ago
Protobuf Team Bot
7e47fc3e39
Remove the _mut() accessors from primitive fields (both explicit presence where they were FieldEntry and implicit presence where they were PrimitiveMut).
...
PiperOrigin-RevId: 615792730
1 year ago
Protobuf Team Bot
7ec56d4243
Remove the oneof_mut accessor and expose the oneof_case accessor on gencode api.
...
PiperOrigin-RevId: 615782249
1 year ago
Protobuf Team Bot
5c8cbdfefd
Fix warnings due to unused 'map' param on map_free on upb kernel (where the upb_free function is a no-op)
...
PiperOrigin-RevId: 615535675
1 year ago
Chris Kennelly
c6727f4eba
Automated rollback of commit d0c631ce7f
.
...
PiperOrigin-RevId: 615472723
1 year ago
Chris Kennelly
d0c631ce7f
Automated rollback of commit ac6c541e12
.
...
PiperOrigin-RevId: 615471065
1 year ago
Protobuf Team Bot
634cc14ed4
Auto-generate files after cl/615136389
1 year ago
Mike Kruskal
b6032d72e3
Add basic upb cmake support.
...
libupb will always be statically linked, and currently doesn't ever install itself.
PiperOrigin-RevId: 615136389
1 year ago
Protobuf Team Bot
a5e5e02bdf
Fix memory leak in the arena when interacting with a type that derives from
...
MessageLite and is marked as arena constructible but not as destructor
skippable. The object was not being registered for destruction.
This currently only affects ImplicitWeakMessage.
PiperOrigin-RevId: 615099201
1 year ago
Mike Kruskal
ea3fe6389e
Internal changes
...
PiperOrigin-RevId: 615051925
1 year ago
Protobuf Team Bot
9ff062cd34
Make types for 'inner' (runtime-specific) owned Repeated and Maps
...
PiperOrigin-RevId: 614995436
1 year ago
Mike Kruskal
baa83b6b43
Enable Editions in preparation for 27.0 release.
...
This marks the official launch of editions, which no longer requires an --experimental_editions flag to use with supported generators. The flag can still be used for generators that don't yet explicitly support editions.
PiperOrigin-RevId: 614729247
1 year ago
Mike Kruskal
7a0e10e021
Release edition defaults CLI arguments.
...
These are no longer experimental, and are the preferred way to generate edition defaults IR for feature resolution.
PiperOrigin-RevId: 614715815
1 year ago
Protobuf Team Bot
bb1c0abcbf
Make the oneof view accessors use consuming-self and the corresponding longer lifetime, avoiding unnecessary shortening of lifetimes in some cases.
...
This follows the precedent established on other accessors on Msg Views.
PiperOrigin-RevId: 614658415
1 year ago
Derek Mauro
686361e79e
Automated Code Change
...
PiperOrigin-RevId: 614658262
1 year ago
Protobuf Team Bot
9db04d2e01
Fix dynamically generated MapEntry parser to have the same behavior as the
...
codegen parser for maps.
Change TcParse table generation to get the fallback function from the generator instead of each one having the logic.
PiperOrigin-RevId: 613722790
1 year ago
Protobuf Team Bot
bcb4026c0c
Auto-generate files after cl/613659141
1 year ago
Protobuf Team Bot
b67a0d92dc
Add "NO CHECKED-IN PROTOBUF GENCODE" to Protobuf C++ gencode.
...
PiperOrigin-RevId: 613659141
1 year ago
Protobuf Team Bot
94ab406bcf
Auto-generate files after cl/613387033
1 year ago
Protobuf Team Bot
434b530c06
Move EagerParseLazyField* APIs to proto2 namespace
...
PiperOrigin-RevId: 613387033
1 year ago
Mike Kruskal
dc484c131e
Fix has_presence to account for proto3 extensions in Java.
...
PiperOrigin-RevId: 613373080
1 year ago
Protobuf Team Bot
0fd69cf163
Auto-generate files after cl/613368436
1 year ago
Protobuf Team Bot
8a15c73d2c
Improve pinning assembly when using a clang that supports it.
...
The new technique adds the relocation without adding an instruction that has to
be executed in the code path.
PiperOrigin-RevId: 613368436
1 year ago
Protobuf Team Bot
3b6e659d95
Minor cleanup: IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 613349591
1 year ago
Mike Kruskal
16528d89c5
Fix has_presence to account for proto3 extensions in C++.
...
PiperOrigin-RevId: 613345477
1 year ago
Cong Liu
ac6c541e12
Enable profile_driven_cluster_aux_subtable.
...
PiperOrigin-RevId: 613340149
1 year ago
Sandy Zhang
2e06e61ca1
Add <shellapi.h> include for CommandLineToArgvW
...
This should fix the following error:
```
third_party\protobuf\src\google\protobuf\compiler\main.cc(127): error C3861: 'CommandLineToArgvW': identifier not found
```
PiperOrigin-RevId: 613319460
1 year ago
Protobuf Team Bot
5230129d9b
Auto-generate files after cl/613271110
1 year ago
Protobuf Team Bot
009078df7a
Move Protobuf C++ versions out of port_def.inc to runtime_version.h so that the version can be used for preprocessing by users.
...
PiperOrigin-RevId: 613271110
1 year ago
Protobuf Team Bot
3dadd0e1ee
Generate an error early while parsing if the message nesting is too large. It
...
will fail anyway later on when trying to create a descriptor but this way we
prevent stack overflows on the parser.
PiperOrigin-RevId: 613245970
1 year ago
Jakob Buchgraber
03687b798b
#rust #protobuf Implement custom Debug for C++ kernel
...
This change implements a custom Debug for messages, views and muts in the C++ kernel. Debug defers to proto2::Utf8Format.
It implements this only for the C++ kernel. We will need to pull in additional dependencies beyond minitables to implement it for UPB as well. This will be done at a later point.
PiperOrigin-RevId: 613191236
1 year ago
Protobuf Team Bot
ff83c91654
Auto-generate files after cl/613016814
1 year ago
Mike Kruskal
7de0ad1adb
Add a unittest locking down presence behavior for proto3 extensions
...
PiperOrigin-RevId: 613016814
1 year ago
Protobuf Team Bot
16f96d15eb
Stop using EagerParseLazyFieldByMutation.
...
PiperOrigin-RevId: 613016289
1 year ago
Protobuf Team Bot
9f4e01ffca
Automated rollback of commit 8e833bfc66
.
...
PiperOrigin-RevId: 613004543
1 year ago
Protobuf Team Bot
6332267b1d
Add EagerParseLazyField no IgnoreParse
...
PiperOrigin-RevId: 612999269
1 year ago