Mike Kruskal
396e26b475
Enable C++ tests for Bazel 7 on mac
...
PiperOrigin-RevId: 610573579
12 months ago
Mike Kruskal
f66d876a10
Allow base64 encoding of embedded edition defaults.
...
PiperOrigin-RevId: 610570515
12 months ago
Mike Kruskal
4dc2c07025
Disable Mac PHP 8.2 test
...
PiperOrigin-RevId: 610520746
12 months ago
Protobuf Team Bot
ab127f7501
Rename EagerParseLazyField to EagerParseLazyFieldIgnoreUnparsed
...
PiperOrigin-RevId: 610469115
12 months ago
Marcin Kowalczyk
03a472ea08
Optimize `Reflection::ScratchSpace::CopyFromCord()`.
...
If the Cord is already flat, return a pointer to its data instead of copying
them to a string.
PiperOrigin-RevId: 610434454
12 months ago
Protobuf Team Bot
7ef3f87e3d
Auto-generate files after cl/610422312
12 months ago
Protobuf Team Bot
afbe9cc9b5
Internal change
...
PiperOrigin-RevId: 610422312
12 months ago
Protobuf Team Bot
7e5962d3bc
Auto-generate files after cl/610415350
12 months ago
Protobuf Team Bot
ed072f207c
Automated rollback of commit 6722988db6
.
...
PiperOrigin-RevId: 610415350
12 months ago
Thomas Van Lenten
9f52d5e380
[ObjC] Fix issue using GPBBootstrap.h only.
...
GPB_ENUM_FWD_DECLARE needs `int32_t`, so add the import so GPBBootstrap.h
stands on its own without needing users to import something else.
Add another compile test file to ensure this doesn't break.
PiperOrigin-RevId: 610403337
12 months ago
Protobuf Team Bot
9c0d130168
Automated Code Change
...
PiperOrigin-RevId: 610384942
12 months ago
Protobuf Team Bot
0e8bb1954d
Automated Code Change
...
PiperOrigin-RevId: 610367636
12 months ago
Protobuf Team Bot
2eb6e4f374
Automated Code Change
...
PiperOrigin-RevId: 610364921
12 months ago
Protobuf Team Bot
ee0a41cae3
Add states to support "ignore unparsed".
...
PiperOrigin-RevId: 609868025
12 months ago
Sandy Zhang
eb10ebd169
Fix features inheritance of oneof fields and extensions and fix/move unit tests to actually run.
...
JUnit4 does not support nested tests so these weren't running. Fixes setup problems and test logic. Oneof fields now inherit from their oneof, and top-level extensions inherit from top-level file when parent descriptor is null.
PiperOrigin-RevId: 609840087
12 months ago
Thomas Van Lenten
baaf402b29
Fix comment error.
...
PiperOrigin-RevId: 609830695
12 months ago
Protobuf Team Bot
f12f279be2
Deprecate Arena::CreateMessage internally first.
...
PiperOrigin-RevId: 609788176
12 months ago
Alyssa Haroldsen
fe5092a392
Support enums as map values
...
PiperOrigin-RevId: 609772950
12 months ago
Protobuf Team Bot
3590a8b7e8
Auto-generate files after cl/609769553
12 months ago
Protobuf Team Bot
6bf0d8a936
Drop MapEntry::_InternalParse and use the TcParser generated version instead.
...
PiperOrigin-RevId: 609769553
12 months ago
Alyssa Haroldsen
5983f7033c
Transpose the map thunk macros, relocate to header file
...
PiperOrigin-RevId: 609766889
12 months ago
Ilya Tokar
5988dc2e37
Make msvc happy
...
For some reason __forceinline inline geives a warning, but
inline __forceinline isn't.
PiperOrigin-RevId: 609766125
12 months ago
Chris Kennelly
9f79ddf8b3
Replace call to proto2::Arena::CreateMessage with Create.
...
PiperOrigin-RevId: 609755924
12 months ago
Protobuf Team Bot
827900d0f5
Add C# to the list of codegen test languages for Editions.
...
PiperOrigin-RevId: 609754899
12 months ago
Thomas Van Lenten
f9731fdf73
[ObjC] Fix potential `-Wstrict-prototypes` warning.
...
PiperOrigin-RevId: 609718293
12 months ago
Protobuf Team Bot
5a0135e65a
Bring back 'flat' setters for singular scalars and strings.
...
The non-string field setters can bypass the vtables already, the string setters still go through the vtable path here because its more important to let them take an `impl SettableValue` to be able to set either a &str or a &ProtoStr already.
PiperOrigin-RevId: 609705233
12 months ago
Alyssa Haroldsen
4395d97f66
Use a 64K static for zeroed scratch space in upb
...
The actual construction of the zeroed block is now entirely safe.
This will be accessed in nearly every program using protobuf.
Using a static in .bss has much less overhead than an atomically-constructed
dynamic allocation and is far more predictable for space-constrained systems.
In the future, if dynamic allocation is kept, it should use std::sync::OnceLock
instead of the much less safe Once combined with `static mut`.
PiperOrigin-RevId: 609635555
12 months ago
YoloMao
8afaae52d8
feat: add visionOS deployment target for Cocoapods ( #15917 )
...
add visionOS deployment target for Cocoapods
Closes #15917
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15917 from YoloMao:feat/visionos_support_via_cocoapods 8a8a640d33
PiperOrigin-RevId: 609578154
12 months ago
Alyssa Haroldsen
c6af7f76b7
Replace UpbTypeConversions::empty_message_value with MaybeUninit/null
...
The API doesn't require the pointees be initialized first, and the writes are predictable.
PiperOrigin-RevId: 609540475
12 months ago
Alyssa Haroldsen
dd27b6b877
Use consistent name for the "get item from untyped map iterator" thunk
...
It now uses the same prefix as other thunks needed for the proxied type,
so the RawMapThunk helper can be used for enums.
Calling it a "iter next" thunk is misleading.
It does not increment the iterator as "next" implies,
it only gets the current key/value the iterator points to.
PiperOrigin-RevId: 609527442
12 months ago
Protobuf Team Bot
5d876c9fec
Point to released versions in Java Protobuf (lite) READMEs instead of the the next, unreleased version.
...
https://github.com/protocolbuffers/protobuf/issues/15878
PiperOrigin-RevId: 609488730
12 months ago
Anton Grbin
0fa67a94aa
JSON conformance test: repeated with a mix of known and unknown enum string values ( #15885 )
...
This test was suggested by @jskeet in the related issue: https://github.com/protocolbuffers/protobuf/issues/7392#issuecomment-1884666885
I am not confident that the failure lists are comprehensive (I only run a few tests locally) -- will fix once we get CI results.
Closes #15885
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15885 from noom:anton/7392/conformance-repeated-enum 60c35f0339
PiperOrigin-RevId: 609487784
12 months ago
Protobuf Team Bot
ce61fc80b6
Remove the override for _InternalParse from Message and inject the custom
...
behavior via DescriptorMethods instead.
PiperOrigin-RevId: 609470854
12 months ago
Protobuf Team Bot
22cbe3a435
Auto-generate files after cl/609454594
12 months ago
Ilya Tokar
4b31b781f6
Be less aggressive about prefetching in bytesizelong
...
PiperOrigin-RevId: 609454594
12 months ago
Protobuf Team Bot
2ec8e4da21
Auto-generate files after cl/609437563
12 months ago
Protobuf Team Bot
6722988db6
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: 609437563
12 months ago
Alyssa Haroldsen
b33682537b
Refactor builtin map key type naming info for enums
...
PiperOrigin-RevId: 609434380
12 months ago
Protobuf Team Bot
e4eac25bb3
Auto-generate files after cl/609416940
12 months ago
Protobuf Team Bot
033ff1710e
Introduce a RustFieldType enum which captures the primitive types that a rust field can be.
...
The purpose is to avoid duplicating the mapping of different types that are only relevant to the serializer but not to the exposed api (e.g. FIXED32 vs INT32)
Treat type=GROUP as rust-type=MESSAGE here which is all that is needed for us to support groups in the rust codegen.
The RustFieldType is parallel to the preexisting FieldDescriptor::CppType which _almost_ does what we need, but it treats Bytes and Strings as the same cpptype which Rust codegen doesn't.
PiperOrigin-RevId: 609416940
1 year ago
Hong Shin
b9483e03c7
Add syntax, oneof, and stream to protobuf-mode.el
...
PiperOrigin-RevId: 609387708
1 year ago
Protobuf Team Bot
73e3aec316
Remove spammy logging message from rust protobuf codegen
...
PiperOrigin-RevId: 609354123
1 year ago
h-vetinari
fe6edca15b
fix pkg-config metadata for shared abseil on windows ( #15888 )
...
Closes #15883 , tested in https://github.com/conda-forge/libprotobuf-feedstock/pull/209
Closes #15888
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15888 from h-vetinari:absl_pkgconfig 9062aa945b
PiperOrigin-RevId: 609206067
1 year ago
Chris Kennelly
b785fcb583
Automated Code Change
...
PiperOrigin-RevId: 609013830
1 year ago
Protobuf Team Bot
1f701a2ba9
Rename FieldBeneratorBase::descriptor_ to field_.
...
PiperOrigin-RevId: 608825012
1 year ago
Protobuf Team Bot
b653a64514
Minor cleanup: IWYU, etc.
...
PiperOrigin-RevId: 608775453
1 year ago
Chris Kennelly
bcb1d8cfbd
Prohibit unverified lazy repeated fields.
...
They are a no-op in protoc.
PiperOrigin-RevId: 608746776
1 year ago
Thomas Van Lenten
dd87c9fc72
[ObjC] Small formatting tweaks.
...
Hopefully will make future edits a little easier.
clang-format doesn't do anything with `R"objc(` blocks, and we can't use `R"cc(`
blocks as that gets the ObjC code formatted wrong.
PiperOrigin-RevId: 608678538
1 year ago
Protobuf Team Bot
4c6436ab44
Internal change
...
PiperOrigin-RevId: 608673368
1 year ago
Protobuf Team Bot
9a56a497b2
Fix unused 'use' warning in simple_nested_test.rs
...
PiperOrigin-RevId: 608669702
1 year ago