Hong Shin
d2b8aa7ef2
Make upb::Status final
...
PiperOrigin-RevId: 597268485
11 months ago
Protobuf Team Bot
8c1f635716
Auto-generate files after cl/597126288
11 months ago
Eric Salo
c026907a5d
upb: replace public universal hazzer with non-universal hazzers
...
PiperOrigin-RevId: 597126288
11 months ago
Protobuf Team Bot
408b497d4e
Auto-generate files after cl/597088960
11 months ago
Mike Kruskal
755b690a7c
Breaking change: disallow incorrect ctype usage
...
PiperOrigin-RevId: 597091014
11 months ago
Protobuf Team Bot
0ce457f6e7
Adds mutable extension accessors to the codegen for upb C and adds a `::protos::MutableExtension` method to upb C++ for getting a mutable extension.
...
PiperOrigin-RevId: 597088960
11 months ago
Protobuf Team Bot
7d6198ed42
Print usage count if it's rarely used.
...
PiperOrigin-RevId: 597083184
11 months ago
Protobuf Team Bot
3b5b6e9f02
Allow friendly use of Reflection::MutableRaw(), Reflection::MutableRawNonOneof().
...
PiperOrigin-RevId: 597061355
11 months ago
Protobuf Team Bot
c5083a855a
InlinedArena needs copy constructor and copy assignment operator deleted
...
Deletes the default copy constructor and assignment operator.
PiperOrigin-RevId: 597041019
11 months ago
Hong Shin
373192ceff
Expunge unnecessary commentary from singular_message.cc and message.cc codegen
...
PiperOrigin-RevId: 597027922
11 months ago
Protobuf Team Bot
afd94185f7
Auto-generate files after cl/597019522
11 months ago
Eric Salo
facf959a78
upb: tag upb_Array.data as UPB_ONLYBITS()
...
PiperOrigin-RevId: 597019522
11 months ago
Protobuf Team Bot
e5b547bcb8
Change MsgMut's _mut() accessors to use (&mut self) instead of (&self)
...
If this took a &self there were holes in thread and memory safety, because it's allowed to get multiple &MsgMuts (but only &mut MsgMuts).
PiperOrigin-RevId: 596991263
11 months ago
Alyssa Haroldsen
0b5cd4e9ef
Implement repeated enum accessors
...
PiperOrigin-RevId: 596985413
11 months ago
Alyssa Haroldsen
20933b2b22
Implement singular enum accessors
...
PiperOrigin-RevId: 596984036
11 months ago
Protobuf Team Bot
f2c187df28
Auto-generate files after cl/596962024
11 months ago
Joshua Haberman
dbd4dcede0
Breaking Change: Removed `syntax` and added `has_presence?`/`is_packed?`.
...
Closes #15313
PiperOrigin-RevId: 596962024
11 months ago
Alyssa Haroldsen
e7be866a17
Support enums in DefaultValue
...
PiperOrigin-RevId: 596769895
11 months ago
Alyssa Haroldsen
e3d2551c8e
Move enum value name calculation
...
PiperOrigin-RevId: 596767666
11 months ago
Alyssa Haroldsen
fa67ce8d4d
Expand PrimitiveRsTypeName to work with non-primitives, rename, refactor
...
PiperOrigin-RevId: 596765288
11 months ago
Alyssa Haroldsen
1eab5a0237
Generate `pub use` for imported enums
...
PiperOrigin-RevId: 596762218
11 months ago
Alyssa Haroldsen
17b0f3f6a4
Add enum qualified path naming fns
...
PiperOrigin-RevId: 596738896
11 months ago
Alyssa Haroldsen
c16e0485c2
Refactor oneof/enum naming functions for consistency
...
PiperOrigin-RevId: 596734937
11 months ago
Protobuf Team Bot
f8d7885236
Add SPLIT test coverage to :analyze_profile_proto_test and disable force_split.
...
PiperOrigin-RevId: 596723248
11 months ago
Protobuf Team Bot
e1253cd905
Auto-generate files after cl/596706308
11 months ago
Eric Salo
87618fcbdd
upb: remove duplicate typedef for upb_TaggedMessagePtr
...
PiperOrigin-RevId: 596706308
11 months ago
Protobuf Team Bot
434d109d9c
Make utf8chars.chars iter return `impl Iterator + fmt::Debug`.
...
PiperOrigin-RevId: 596599987
11 months ago
Protobuf Team Bot
4e90eadcb3
Auto-generate files after cl/596588385
11 months ago
Eric Salo
c02f943f1a
upb: distinguish between fields and extensions in the public clear() accessors
...
PiperOrigin-RevId: 596588385
11 months ago
Jakob Buchgraber
991a2f4d54
#refactor Simplify maps through the new ProxiedInMapValue<K> trait
...
This change is a pure refactoring and simplification of the code. We replace all MapsWith<TYPE>KeyOps traits through a single generic ProxiedInMapValue<K> trait. Through connecting the runtime maps implementation with Proxied the code gets a lot simpler e.g. we can use View<T> instead of hardcoding the concrete type behind it.
I also expect this change to be beneficial for the gencode. In a subsequent CL we'll implement message values for maps. After this change we'll only have to implement a single trait, while before we had to implement num(key types) many traits.
PiperOrigin-RevId: 596562909
11 months ago
Protobuf Team Bot
1a21cb57b7
Auto-generate files after cl/596390524
11 months ago
Eric Salo
bdf24b2e0d
upb: add 'static' to some wire decoder functions
...
PiperOrigin-RevId: 596390524
11 months ago
Eric Salo
d228a44a2f
upb: fix some more compiler warnings in Ruby about missing return values
...
PiperOrigin-RevId: 596390202
11 months ago
Protobuf Team Bot
69cffdca9c
Annotate some Kotlin generated protobuf code.
...
Note that this change removes the use of ${$ and $}$ in
the body of a template `clear` method. These brackets are
currently unused (there's no Annotate call and the variables are
set to the empty string); it also shouldn't be necessary to
annotate non-definitions.
PiperOrigin-RevId: 596254156
11 months ago
Gabriel Féron
585c87904a
Fix BUILD.bazel for newer rules_android_ndk ( #15298 )
...
When using transitions, and `rules_android_ndk` the constraint needs to be changed to `@platforms`.
Closes #15298
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15298 from gferon:fix-android-constraint d15c794da3
PiperOrigin-RevId: 596140608
11 months ago
Protobuf Team Bot
e77b709750
Remove unused PROTOBUF_FORCE_RESET_IN_CLEAR
...
PiperOrigin-RevId: 596124853
11 months ago
Protobuf Team Bot
7bb9c98133
Auto-generate files after cl/596105029
11 months ago
Protobuf Team Bot
b2e94f3c41
Use raw string for Emit
...
PiperOrigin-RevId: 596105029
11 months ago
Dmitri Gribenko
321b817147
Automated Code Change
...
PiperOrigin-RevId: 596091728
11 months ago
Protobuf Team Bot
d6ccc70078
IWYU cleanup.
...
PiperOrigin-RevId: 596074149
11 months ago
Protobuf Team Bot
7b2e9aac80
Change the ids used the unset field tracking to be Message+FieldDescriptor.
...
The absolute address of a member is unstable and can be invalidated by changes to other
fields. For example, for split fields.
PiperOrigin-RevId: 596072639
11 months ago
Alyssa Haroldsen
d1b328ace3
Fix nested enum generation when enums are the sole nested types
...
PiperOrigin-RevId: 596066421
11 months ago
Protobuf Team Bot
f5b50c5022
Add self pinning on all message accessors for weak descriptor messages.
...
This guarantees that no matter how you get the instance we pin the type on any
use.
Previously, casting a `Message*` to some generated type and calling methods on it could trigger undefined behavior unless the cast is down via the ones provided by the library (eg `DownCastToGenerated`).
PiperOrigin-RevId: 596066250
11 months ago
Sandy Zhang
0d8080ef29
Add to Proto2 JSON conformance test failure lists for C#, JRuby and PHP C
...
PiperOrigin-RevId: 596057023
11 months ago
Jason Lunn
bb38ba5575
Fix separate issues in JRuby's "native" `dup` and `inspect` methods. ( #15265 )
...
Update the stress test to exercise `proto3_optional` fields.
Closes #15265
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15265 from protocolbuffers:fix_jruby_proto3_optional 4040e13a7b
PiperOrigin-RevId: 596028361
11 months ago
Joshua Haberman
a8b8ea02b7
Breaking Change: fixed json_encode/json_decode to use the message's pool.
...
This bug arises only in the uncommon case where there is more than one DescriptorPool. In such a case, JSON encode/decode should always use the pool of the message being encoded/decoded, not the generated pool.
Closes #15281
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15281 from protocolbuffers:ruby-json-pool-fix 91e2dc55dc
PiperOrigin-RevId: 596027770
11 months ago
Protobuf Team Bot
55260d8321
Auto-generate files after cl/596018472
11 months ago
Protobuf Team Bot
679c1c9342
Update comment of "lazy" field option to reflect eager verification.
...
PiperOrigin-RevId: 596018472
11 months ago
Jie Luo
0905ba3462
Add "extend repeated with nothing" tests back for upb python
...
PiperOrigin-RevId: 596017378
11 months ago
Mike Kruskal
3acd85e0a9
Remove edition getter from python descriptor APIs
...
We've never released these, so this is not a breaking change.
PiperOrigin-RevId: 596007719
11 months ago