Mike Kruskal
725a592c54
Merge pull request #13288 from mkruskal-google/backports-24
...
Explicitly delete the destructor for the internal `Rep` structure.
2 years ago
Mike Kruskal
c6d19b380b
Merge pull request #13277 from protocolbuffers/main-202307112329
...
Updating version.json to: 25-dev
2 years ago
Joshua Haberman
298de3d771
Refactored upb_proto_library() aspect for greater clarity
...
We define merge functions to handle the alias library case.
PiperOrigin-RevId: 547561043
2 years ago
Martijn Vels
c27bb6206f
Explicitly delete the destructor for the internal `Rep` structure.
...
MSVC compilers generate warnings that the default destructor is implicitly deleted, which causes errors on /W1. While this is a pedantic warning (error), we can easily make the deletion explicit to avoid these warnings.
PiperOrigin-RevId: 547548886
2 years ago
Martijn Vels
994e08e22a
Explicitly delete the destructor for the internal `Rep` structure.
...
MSVC compilers generate warnings that the default destructor is implicitly deleted, which causes errors on /W1. While this is a pedantic warning (error), we can easily make the deletion explicit to avoid these warnings.
PiperOrigin-RevId: 547548886
2 years ago
Martijn Vels
4fcd1ddea2
Add InternalVisbility constructors to ImplicitWeakMessage classes
...
This CLs adds internally visible arena enabled constructors and copy constructors to ImplicitWeakMessage and WeakRepeatedPtrField.
PiperOrigin-RevId: 547544297
2 years ago
Martijn Vels
739a1f8853
Add InternalVisibility arena constructor to ExtensionSet
...
This change adds an arena enabled constructor guarded by `InternalVisibility`. It also moves the existing constructor inline as it's trivial, and implements the default constructor in terms of the (future private) arena constructor.
PiperOrigin-RevId: 547529474
2 years ago
Joshua Haberman
79af13abde
Use filegroup() internally instead of pkg_files()
...
pkg_files() has some odd quirks, like breaking if a filename exists in multiple directories. filegroup() does everything we need, without these quirks.
PiperOrigin-RevId: 547523447
2 years ago
Sandy Zhang
d6157f7c7e
Mark `FieldDescriptor.hasOptionalKeyword()` as deprecated.
...
This API will be removed in a future breaking change.
PiperOrigin-RevId: 547505900
2 years ago
Hong Shin
43778a5e2b
Add V0 support for floats and doubles
...
PiperOrigin-RevId: 547503785
2 years ago
Joshua Haberman
a6852ec919
Moved TypeScript direct bit read/writes to //third_party/upb/bits
...
This will move us towards keeping all these encapsulation breaks in a common place.
This also removes the IFTTT blocks. Keeping IFTTT blocks for each language would become unmanageable, but going forward we will know to look in `//third_party/upb/bits` whenever the internal data structures in upb change.
PiperOrigin-RevId: 547494495
2 years ago
Jie Luo
533fbbb45e
Add tuple support to set Struct
...
fixes https://github.com/protocolbuffers/protobuf/issues/13205
PiperOrigin-RevId: 547465304
2 years ago
Adrian Sadłocha
d70e3dea0e
Update a doc comment
...
PiperOrigin-RevId: 547464862
2 years ago
Jason Lunn
01fed1cc1b
Expose methods needed by Ruby FFI using UPB_API ( #1391 )
...
Once merged, the changes to ~`upb-ruby.h`~ `glue.c` in https://github.com/protocolbuffers/protobuf/pull/11483 can be reverted without breaking the FFI feature branch.
Closes #1391
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/upb/pull/1391 from JasonLunn:ffi 5c3a5b8901a3017e12c96a9ea5ab2603a489fd1f
PiperOrigin-RevId: 547373759
2 years ago
Martijn Vels
befdd1672d
Add internally visible Arena enabled copy constructor
...
PiperOrigin-RevId: 547364398
2 years ago
Protobuf Team Bot
9772a5af19
Auto-generate files after cl/547362713
2 years ago
Martijn Vels
bda0158e85
Add a constexpr std::initializer_list<> constructor to HasBits
...
This provides easy constant / default initialization of donated string bit masks
PiperOrigin-RevId: 547362713
2 years ago
Mike Kruskal
d259fa9783
Updating version.json to: 25-dev ( #13277 )
...
Closes #13277
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13277 from protocolbuffers:main-202307112329 0d4c4b0207
PiperOrigin-RevId: 547339203
2 years ago
Martijn Vels
5cf74223aa
Add protected `internal_visibility()` for Message derived classes.
...
PiperOrigin-RevId: 547316463
2 years ago
Protobuf Team Bot
b411d7d94a
Updating version.json to: 24.0-dev
2 years ago
Protobuf Team Bot
05835e374d
Updating version.json and repo version numbers to: 24.0-rc1
2 years ago
Protobuf Team Bot
0d4c4b0207
Updating version.json to: 25-dev
2 years ago
Thomas Van Lenten
d8b1a626dd
Use Printer::Emit formatting to remove optional args from GetOptionalDeprecatedAttribute.
...
PiperOrigin-RevId: 547303540
2 years ago
Thomas Van Lenten
0196d1e138
Move the two bools for EmitComment to a flags enum
...
Makes call sites easier to ready and should make things safer
if this ever needs some other support in the future.
PiperOrigin-RevId: 547284873
2 years ago
Mike Kruskal
9d43502e10
Update upb dependency ( #13271 )
...
Closes #13271
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13271 from mkruskal-google:main 8fbcf76d25
PiperOrigin-RevId: 547269038
2 years ago
Protobuf Team Bot
f7e25ebfd1
Auto-generate CMake file lists after PR #1401
2 years ago
Mike Kruskal
0fdcdbb616
Update protobuf dependency ( #1401 )
...
Closes #1401
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/upb/pull/1401 from mkruskal-google:update-24.0 daff44b9b921d5c99a783133810ed99b85b1468d
PiperOrigin-RevId: 547255920
2 years ago
Joshua Haberman
3f98af287b
Updated Ruby min version to 2.7, and removed some compat code
...
PiperOrigin-RevId: 547245820
2 years ago
Protobuf Team Bot
a75def66cd
Define the shape of BytesMut with stubbed methods
...
This is the primary mutator for `bytes` fields, which proxy `[u8]`.
PiperOrigin-RevId: 547242972
2 years ago
Protobuf Team Bot
38d63f21f6
Auto-generate CMake file lists
2 years ago
Mike Kruskal
6d9e1eb91c
No-op change to trigger cmake regen
...
PiperOrigin-RevId: 547213793
2 years ago
Thomas Van Lenten
3c2af99960
Clearify that ExtensionGenerator gets a message or root class.
...
PiperOrigin-RevId: 547207538
2 years ago
Thomas Van Lenten
b830c62623
Remove no longer needed comment helper.
...
PiperOrigin-RevId: 547200328
2 years ago
Hong Shin
fcab1a4371
Add V0 support for signed ints
...
PiperOrigin-RevId: 547200059
2 years ago
Thomas Van Lenten
6c4ab101ce
Move MessageGenerator::GenerateSource over to Printer::Emit
...
There are whatespace changes because I couldn't get some of the
generated CPreProcessor things to line up in the exact same way.
PiperOrigin-RevId: 547188309
2 years ago
John (JD) Douceur
cb20aca1eb
Add Protobuf extension number for DTDL option ( #13247 )
...
This option will be used by extensions to the [Digital Twins Definition Language](https://github.com/Azure/opendigitaltwins-dtdl ) to support Protobuf serialization.
Closes #13247
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13247 from jrdouceur:jrdouceur/dtdl-option 84192710c7
PiperOrigin-RevId: 547186193
2 years ago
Protobuf Team Bot
d42b23718a
Add remaining helper functions for Optional v0.6
...
None of these methods are necessary for users to use Optional, but they
are particularly useful and mirror the methods inside of
std::collections::hash_map::Entry.
PiperOrigin-RevId: 547038832
2 years ago
Mike Kruskal
ddb1f77d7a
Add daily check for 24.x staleness
...
PiperOrigin-RevId: 547017953
2 years ago
Mike Kruskal
3e9fd25ac6
Drop Bazel 4 support in upb.
...
This has already been dropped in the protobuf repo, which now supports Bazel 5 and 6.
PiperOrigin-RevId: 547007891
2 years ago
Protobuf Team Bot
3d6a28f95f
Auto-generate files after cl/546969351
2 years ago
Protobuf Team Bot
55e5230196
Clean up macros related to the phased rollout of TSan validation.
...
PiperOrigin-RevId: 546969351
2 years ago
Protobuf Team Bot
0d7a39663b
Implement the rest of the v0.6 Optional design
...
This introduces a new OptionalProxied trait in order to support the needed trait methods.
PiperOrigin-RevId: 546938819
2 years ago
Thomas Van Lenten
54377be12c
Move MessageGenerator::GenerateMessageHeader over to Printer::Emit
...
PiperOrigin-RevId: 546930919
2 years ago
Joshua Haberman
05ca7e37d0
Added a check to verify that the number of required fields does not exceed the maximum.
...
upb has an implementation-specific maximum of 63 required fields per message. We need to verify this limit when building a MiniTable.
PiperOrigin-RevId: 546929196
2 years ago
Thomas Van Lenten
aa72b19bf9
Move *FieldGeneator over to Printer::Emit.
...
Minor updates to how comments are output to have a method
so folks can directly call Emit to handle multline things correctly.
PiperOrigin-RevId: 546921123
2 years ago
Hong Shin
b01794cb3b
Add test that ensures rust protos build with reserved keywords
...
Also confirmed that this fails to build without the `r#` inside singular_scalar.cc
PiperOrigin-RevId: 546906226
2 years ago
Hong Shin
4f20efbb78
Internal Change
...
PiperOrigin-RevId: 546867607
2 years ago
Protobuf Team Bot
d18cacaeb9
Migrate hash_map<bool, T> to std::array<T, 2>
...
PiperOrigin-RevId: 546859975
2 years ago
Hong Shin
b3942c0618
In this CL, we add V0 support for unsigned ints (32 and 64).
...
PiperOrigin-RevId: 546859828
2 years ago
Protobuf Team Bot
09c19b8e1a
Fix support for cc_shared_library in upb_proto_library.
...
PiperOrigin-RevId: 546851795
2 years ago