Protobuf Team Bot
d6ecec884c
Internal change.
...
PiperOrigin-RevId: 526046192
2 years ago
Sandy Zhang
cc7116ceeb
Remove unused proto3 field from UnknownFieldSetSchema.
...
This should reduce some unnecessary branching off of syntax for ManifestSchemaFactory for CODE_SIZE optimization for full using schemas.
PiperOrigin-RevId: 526039969
2 years ago
Tao Li
408afe1eb4
Fix typo for newlib macro ( #12521 )
...
Should use \_\_NEWLIB__
Closes #12521
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12521 from RiversideSC:main 3c793225db
PiperOrigin-RevId: 526020495
2 years ago
Luke Sandberg
983dac24c3
Change `PrintFreeFieldNumbers` to not assume that groups occupy the same field range as their containing messages.
...
PiperOrigin-RevId: 525876198
2 years ago
Protobuf Team Bot
699093915d
Auto-generate files after cl/525862155
2 years ago
Protobuf Team Bot
b2bd9dcb36
Refactor RepeatedMessageFieldGenerator code to use "_internal_$name$()" and "_internal_mutable_$name$()" rather than "$field$" to access fields in preparation for split repeated fields.
...
Motivation: we are planning to store split repeated fields in the split struct as pointers to repeated fields, which requires not accessing "$field$" directly.
We avoid using "_internal_$name$()" and "_internal_mutable_$name$()" in the implicit weak field case so that we can avoid linking in the message (as tested in implicit_weak_fields_test).
PiperOrigin-RevId: 525862155
2 years ago
Protobuf Team Bot
1123be7562
Auto-generate files after cl/525833833
2 years ago
Miguel Young de la Sota
725d7d9fc5
Partially convert message_field.cc to use Emit().
...
This CL does not change the formatting of any of the string templates;
it "only" reorganizes the file and updates the names of everything to match
other migrated files. Followup CLs will update the string templates.
PiperOrigin-RevId: 525833833
2 years ago
Jeff Gulbronson
a56e5ded7b
Reserve 1180 for Wire use_array ( #12491 )
...
release notes: no
Supports https://github.com/square/wire/pull/2433
Closes #12491
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12491 from JGulbronson:jgulbronson.claim-1180-for-wire f577336c0b
PiperOrigin-RevId: 525793344
2 years ago
Deanna Garcia
bd6a0cf15b
Delete old numpy_test.py file and replace references with the new one.
...
This is the final step to make numpy/pip_deps a test-only dependency.
PiperOrigin-RevId: 525785717
2 years ago
Protobuf Team Bot
0b180ad11a
Auto-generate files after cl/525778274
2 years ago
Protobuf Team Bot
1e67de4ed5
Add a new enum validation format. The format is compact for sequential and almost sequential enums. Uses Eytzinger layout for a fallback binary search.
...
PiperOrigin-RevId: 525778274
2 years ago
Miguel Young de la Sota
8e53046d94
Make protobuf_upb::Arena into a proper Rust RAII type.
...
PiperOrigin-RevId: 525775419
2 years ago
Jakob Buchgraber
44ac124713
Test nested messages support for UPB.
...
PiperOrigin-RevId: 525733570
2 years ago
Tao Li
945bf3c48d
Fix build for newlib ( #12501 )
...
Fix includes for newlib
Closes #12501
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12501 from RiversideSC:main cfcc72912d
PiperOrigin-RevId: 525623814
2 years ago
Matt Kulukundis
a75c1a2761
Add `assert` to the list of keywords for C++.
...
Closes #12010
PiperOrigin-RevId: 525607232
2 years ago
Adam Cozzette
b30259722d
Fix reference to protoc binary in protobuf-generate.cmake
...
This should fix #12374 , #12375 , and #12450 . The `protobuf_PROTOC_EXEC` variable
is not defined, and I think `protobuf::protoc` is what we should be using
instead.
PiperOrigin-RevId: 525591320
2 years ago
Protobuf Team Bot
866dfe6a68
protoc java: add missing annotation to clearField() for messages
...
PiperOrigin-RevId: 525547339
2 years ago
Protobuf Team Bot
eb8d57aa6d
Auto-generate files after cl/525538377
2 years ago
Protobuf Team Bot
6a675ebb44
Internal change
...
PiperOrigin-RevId: 525538377
2 years ago
Protobuf Team Bot
eeb9851397
Auto-generate files after cl/525522437
2 years ago
Protobuf Team Bot
cebf9fe37d
Internal changes
...
PiperOrigin-RevId: 525522437
2 years ago
Protobuf Team Bot
eecb4cef1d
Disable extension declarations validations in open source.
...
PiperOrigin-RevId: 525518049
2 years ago
Deanna Garcia
13833b1df0
Add numpy test to python_test_srcs target so that the python test wheel will have access to it.
...
PiperOrigin-RevId: 525498162
2 years ago
Marcel Hlopko
e5679c01e8
Implement nested messages for v0 API for cpp kernel
...
PiperOrigin-RevId: 525372222
2 years ago
zhangskz
22d0a354a0
Merge 22.x to main ( #12494 )
...
Closes #12494
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12494 from protocolbuffers:main-202304181855 4e23571384
PiperOrigin-RevId: 525263110
2 years ago
zhangskz
0603373e44
Merge pull request #12494 from protocolbuffers/main-202304181855
...
Merge 22.x to main
2 years ago
Sandy Zhang
8bdca948db
Update version.json to 23-dev
...
PiperOrigin-RevId: 525257136
2 years ago
Miguel Young de la Sota
35b9813f85
Actually run destructors of C++ messages.
...
PiperOrigin-RevId: 525244271
2 years ago
Protobuf Team Bot
6ad1a6d674
Internal change
...
PiperOrigin-RevId: 525235311
2 years ago
zhangskz
5e8510cfe5
Merge pull request #12496 from protocolbuffers/zhangskz-patch-2
...
Update version.json to 23-dev
2 years ago
zhangskz
cf71bbca9a
Update version.json to 23-dev
...
This commit should have been auto-generated as in 96ecd25b9c
, but we missed the step merging this to main from CSR when 22.x was cut.
2 years ago
Sandy Zhang
4e23571384
Merge remote-tracking branch 'upstream/22.x' into main-202304181855
2 years ago
Deanna Garcia
d18492ece1
Give upb pb_unit_tests visibility to the new numpy_test target.
...
PiperOrigin-RevId: 525197302
2 years ago
Thomas Van Lenten
80f0f7463d
Expose __builtin_mul_overflow via port_def.inc/port_undef.inc
...
Follow up to commit b9e056f779
Not all supported compilers support __has_builtin, so define a protobuf flag
and check that it is defined before trying to use it.
Found on: https://github.com/apple/swift-protobuf/actions/runs/4733817439/jobs/8401873649
PiperOrigin-RevId: 525179304
2 years ago
Adam Cozzette
c32f8e3c88
Make retention stripping code tolerant of parsing/serialization errors
...
PiperOrigin-RevId: 525168179
2 years ago
Thomas Van Lenten
2fdec2a0df
Set up C++ macOS bazel coverage for Apple Silicon
...
This is inspired by https://github.com/protocolbuffers/protobuf/issues/12306 ,
but does not show those failures, so clearly it doesn't catch everything, but
figured some coverage is better than none.
PiperOrigin-RevId: 525134469
2 years ago
Deanna Garcia
d21163731b
Add init file to new google/protobuf/internal/numpy package to have it recognized as a python module
...
PiperOrigin-RevId: 524981114
2 years ago
Matt Fowles Kulukundis
2496b98697
Merge pull request #12487 from protocolbuffers/test_kfm
...
Ensure the ObjC runtime builds for Apple Silicon.
2 years ago
Thomas Van Lenten
1f1bd79d33
Ensure the ObjC runtime builds for Apple Silicon.
...
Github doesn't currently have Apple Silicon runners, but we can build for
the target to atleast ensure things are building.
PiperOrigin-RevId: 524929865
2 years ago
Thomas Van Lenten
8539ef4974
Ensure the ObjC runtime builds for Apple Silicon.
...
Github doesn't currently have Apple Silicon runners, but we can build for
the target to atleast ensure things are building.
PiperOrigin-RevId: 524929865
2 years ago
Deanna Garcia
fe038fc9d2
Make numpy/pip_deps a test-only dependency.
...
Create an isolated build file for the numpy test to separate from runtime.
PiperOrigin-RevId: 524913924
2 years ago
Protobuf Team Bot
0339e176cf
Auto-generate files after cl/524903073
2 years ago
Miguel Young de la Sota
6678619d10
Factor out different codegen parts of the Rust backend.
...
The intent of this change is to take the best ideas from the C++ backend, such as having generator objects that can cache pre-computed state, while minimizing duplication.
Where possible, we take the approach of making the C++ and UPB kernel-specific code as similar as possible, since this reduces the number of templates we need to keep in sync.
PiperOrigin-RevId: 524903073
2 years ago
Protobuf Team Bot
01aca3e606
Internal change
...
PiperOrigin-RevId: 524894117
2 years ago
Marcel Hlopko
5091c9fd10
Enable sanitized CI builds
...
PiperOrigin-RevId: 524773049
2 years ago
Deanna Garcia
c7d979dbf4
Update UPB dependency
...
PiperOrigin-RevId: 524423191
2 years ago
Protobuf Team Bot
84a3b594c7
Auto-generate files after cl/524383969
2 years ago
Protobuf Team Bot
b8e7192a73
Update usage disclaimer on FieldOptions.ctype
...
FieldOptions.ctype is public and CORD support is implemented for [ctype=CORD] on "bytes" fields. Include a public comment for CORD about use and supported types.
PiperOrigin-RevId: 524383969
2 years ago
Protobuf Team Bot
faf9e8dee3
Auto-generate files after cl/524366974
2 years ago