Protobuf Team Bot
1ceedf88ca
Use [[nodiscard]] instead of PROTOBUF_NODISCARD
...
With C++17 being baseline, PROTOBUF_NODISCARD is no longer necessary. Directly
using [[nodiscard]] makes port_def.inc smaller.
PiperOrigin-RevId: 693808783
4 weeks ago
Protobuf Team Bot
54b4180302
Internal change
...
PiperOrigin-RevId: 693808404
4 weeks ago
Protobuf Team Bot
62f9320b47
Auto-generate files after cl/693801612
4 weeks ago
Protobuf Team Bot
b96f2881aa
Auto-generate files after cl/693799584
4 weeks ago
Hong Shin
a862499b19
upb: Add upb_Message_GetExtensionMessage
...
PiperOrigin-RevId: 693801612
4 weeks ago
Chris Kennelly
d9a8e7a8fc
Internal change
...
PiperOrigin-RevId: 693800434
4 weeks ago
Hong Shin
8eeee0e3ca
hpb: implement SetExtension for scalars i32 and i64
...
PiperOrigin-RevId: 693799584
4 weeks ago
Protobuf Team Bot
ab2a5b2aa1
Auto-generate files after cl/693789370
4 weeks ago
Protobuf Team Bot
b1882d357b
Clarify exception message for repeated builders.
...
Technically these methods fail either if the field is primitive (non-message) or if the field is repeated. However it is confusing to have a repeated message field claim to be of type 'message' and then fail with an error message that claims you need a message type.
PiperOrigin-RevId: 693789370
4 weeks ago
Protobuf Team Bot
5ebe2e17c7
Auto-generate files after cl/693773496
4 weeks ago
Protobuf Team Bot
297687a83f
Internal change
...
PiperOrigin-RevId: 693773496
4 weeks ago
Protobuf Team Bot
4bf7a66ce2
Auto-generate files after cl/693772376
4 weeks ago
Protobuf Team Bot
4e78fd1b5d
Internal change
...
PiperOrigin-RevId: 693772376
4 weeks ago
Protobuf Team Bot
5e1ba7f15c
Auto-generate files after cl/693746986
4 weeks ago
Protobuf Team Bot
c3cbfc7ad7
Internal change
...
PiperOrigin-RevId: 693746986
4 weeks ago
Protobuf Team Bot
d329dd84f2
Auto-generate files after cl/693697205
4 weeks ago
Protobuf Team Bot
df2b2efc8c
Internal version update.
...
PiperOrigin-RevId: 693697205
4 weeks ago
Protobuf Team Bot
9b0a515762
Auto-generate files after cl/693650377
4 weeks ago
Protobuf Team Bot
0509686f1d
Internal change
...
PiperOrigin-RevId: 693650377
4 weeks ago
Protobuf Team Bot
b1e8babda7
Auto-generate files after cl/693612028
4 weeks ago
Protobuf Team Bot
8a0f8ad19f
Internal change
...
PiperOrigin-RevId: 693612028
4 weeks ago
Protobuf Team Bot
d13dab6d59
Auto-generate files after cl/693606816
4 weeks ago
Protobuf Team Bot
c11d34e211
Internal change
...
PiperOrigin-RevId: 693606816
4 weeks ago
Protobuf Team Bot
cefc17a59d
Auto-generate files after cl/693581163
4 weeks ago
Protobuf Team Bot
1930fb5ca5
Internal change
...
PiperOrigin-RevId: 693581163
4 weeks ago
Protobuf Team Bot
d67dd21383
Auto-generate files after cl/693521568
4 weeks ago
Protobuf Team Bot
d60ac1d460
Internal change
...
PiperOrigin-RevId: 693521568
4 weeks ago
Protobuf Team Bot
1cb708c035
Auto-generate files after cl/693516053
4 weeks ago
Protobuf Team Bot
4ec5b2a1a2
Internal change
...
PiperOrigin-RevId: 693516053
4 weeks ago
Protobuf Team Bot
4a5649b8b3
Auto-generate files after cl/693492954
4 weeks ago
Protobuf Team Bot
6597c085de
Automated rollback of commit 6b9692460a
.
...
PiperOrigin-RevId: 693492954
4 weeks ago
Protobuf Team Bot
af14909c44
Auto-generate files after cl/693484023
4 weeks ago
Protobuf Team Bot
cfea150df8
Internal change
...
PiperOrigin-RevId: 693484023
4 weeks ago
Protobuf Team Bot
0d6216dbfd
Auto-generate files after cl/693469310
4 weeks ago
Protobuf Team Bot
8a33e2b5bc
Fix inconsistency issues with ALWAYS_INLINE macros.
...
Some uses put the `inline` keyword before the attribute, some put it after the
attribute, some didn't put it at all.
Clang is very permissive and it allowed code to work where it breaks in other
compilers. GCC doesn't like if you don't put the keyword, MSVC doesn't like if
the keyword is in the wrong place.
By moving the keyword into the macro we prevent this issue altogether.
PiperOrigin-RevId: 693469310
4 weeks ago
Protobuf Team Bot
6a6f4a0437
Auto-generate files after cl/693464006
4 weeks ago
Hong Shin
a453cffaed
hpb: upgrade test protos to use editions
...
if anyone should be using editions, it's us!
PiperOrigin-RevId: 693464006
4 weeks ago
Protobuf Team Bot
fbe548e200
Auto-generate files after cl/693436567
4 weeks ago
Chris Kennelly
da08317d82
Poison initial Arena block with MSan.
...
We should always initialize it before we use it.
PiperOrigin-RevId: 693436567
4 weeks ago
Protobuf Team Bot
21bec0fa3e
Auto-generate files after cl/693425855
4 weeks ago
Jie Luo
3df01fa955
Fix GetMutableMessagePointer() in python proto_api to find from generated factory before check with dynamic message factory
...
PiperOrigin-RevId: 693428774
4 weeks ago
Protobuf Team Bot
09069f17dd
Internal change
...
PiperOrigin-RevId: 693425855
4 weeks ago
Protobuf Team Bot
ab7570a8de
Auto-generate files after cl/693421414
4 weeks ago
Protobuf Team Bot
6b9692460a
Internal change
...
PiperOrigin-RevId: 693422145
4 weeks ago
Jie Luo
c261b49a95
Breaking change: Remove deprecated GetPrototype MessageFactory.GetPrototype(),
...
MessageFactory.CreatePrototype(), MessageFactory.GetMessages(),
SymbolDatabase.GetPrototype(), SymbolDatabase.CreatePrototype(), SymbolDatabase.GetMessages()
Replacement APIs are: message_factory.GetMessages(), message_factory.GetMessageClass(), message_factory.GetMessageClassesForFiles()
PiperOrigin-RevId: 693421414
4 weeks ago
Protobuf Team Bot
08d5ef9485
Auto-generate files after cl/693406522
4 weeks ago
Protobuf Team Bot
f6f93a95e0
Internal change
...
PiperOrigin-RevId: 693406522
4 weeks ago
Protobuf Team Bot
eb0e6d68de
Auto-generate files after cl/693394959
4 weeks ago
Adam Cozzette
9bdafdbb0c
Rust C++: remove per-message functions for repeated fields
...
This CL deletes the per-message C++ functions for operating on repeated fields
and replaces them with functions in the runtime that can work with arbitrary
messages.
Similar to what we did with maps, this required refactoring the code to make it
work with `RepeatedPtrFieldBase`, the untyped base class of
`RepeatedPtrField<T>`. I added a `RustRepeatedMessageHelper` class to allow us
access to the protected methods we need.
This should save a bit of linker input code size, but I think more importantly
we are going to need this eventually to enable tree shaking to work well.
PiperOrigin-RevId: 693394959
4 weeks ago
Protobuf Team Bot
31c5f73ec1
Auto-generate files after cl/693368653
4 weeks ago