Martijn Vels
774fef9bfd
Introduce `AllocateAtLeast()`
...
PiperOrigin-RevId: 504614536
2 years ago
Mike Kruskal
7bc3ed8835
Migrating downstream error collectors to use the new string_view overrides.
...
PiperOrigin-RevId: 504607264
2 years ago
Mike Kruskal
6fd3783b4a
Migrating downstream error collectors to use the new string_view overrides.
...
PiperOrigin-RevId: 504596388
2 years ago
Mike Kruskal
d6ff718364
Automated rollback of commit 5bbc6fc6aa
.
...
PiperOrigin-RevId: 504594321
2 years ago
Protobuf Team Bot
3774ee0acb
Stop assuming lazy message sets are initialized.
...
PiperOrigin-RevId: 504569894
2 years ago
Protobuf Team Bot
8870581adf
Auto-generate files after cl/504460562
2 years ago
Mike Kruskal
a9f1ea6371
Breaking change: Migrate to Abseil's logging library.
...
This deletes our old branches of internal Abseil code in favor of their newly open-sourced library. Notably, this removes the ability to turn CHECK crashes into exceptions.
PiperOrigin-RevId: 504460562
2 years ago
Adam Cozzette
5a56837810
Add retention and target field options in descriptor.proto
...
PiperOrigin-RevId: 504450522
2 years ago
Martijn Vels
233aa47c7d
Change AllocateInternal to allow us to easy specialize for std::string or absl::Cord
...
PiperOrigin-RevId: 504441955
2 years ago
Protobuf Team Bot
9416dca8bf
Automated rollback of commit 6d09e2c80a
.
...
PiperOrigin-RevId: 504432163
2 years ago
Mike Kruskal
5bbc6fc6aa
Automated rollback of commit 888810af33
.
...
PiperOrigin-RevId: 504428590
2 years ago
Mike Kruskal
888810af33
Migrate std::string_view usage to absl::string_view.
...
This is a no-op in C++17 and newer, but adds the ability to use string_view pre-C++17.
Closes https://github.com/protocolbuffers/protobuf/issues/11627
PiperOrigin-RevId: 504410634
2 years ago
Martijn Vels
6d09e2c80a
Introduce `AllocateAtLeast()`
...
PiperOrigin-RevId: 504408238
2 years ago
Mike Kruskal
b39f77efa8
Deprecate ClearedCount
...
This will be removed in a future release along with the rest of the "cleared" API
PiperOrigin-RevId: 504344009
2 years ago
Protobuf Team Bot
43e5937bf6
Fix bool parser for map entries to look at the whole 64-bit varint and not just
...
the first 32 bits.
This is the expected narrowing for bool fields.
PiperOrigin-RevId: 504338621
2 years ago
Protobuf Team Bot
8c6dcd05cd
[ObjC] Merge extension ranges that are continues.
...
Can result in a small reduction in binary size as well as slight performance
improvement during serialization since it is less subcalls for writing out any
extensions in the ranges.
PiperOrigin-RevId: 504272482
2 years ago
Martijn Vels
9ca411a46b
Change RepeatedField to create only 'current' elements, not 'total' elements.
...
Currently RepeatedField allocates and constructs all elements on 'Reserve'. This creates inefficiencies, but more problematically, leads to sanitizer issues once we have instances that actively poison their private contents such as Cord. This change fixes RepeatedField to only create actually 'live' elements.
PiperOrigin-RevId: 504121827
2 years ago
Mike Kruskal
ffa9b503bf
Create a new Bazel4 presubmit to lock down our support.
...
PiperOrigin-RevId: 504097801
2 years ago
Protobuf Team Bot
092e447280
Make TDP accept and discard garbage non-continuation bits on the 10th byte of a varint.
...
This is the behavior of the codegen parser and the reflection parser.
PiperOrigin-RevId: 504022814
2 years ago
Protobuf Team Bot
46656ed080
Breaking Change: `proto2::Map::value_type` changes to `std::pair<const K, V>`.
...
PiperOrigin-RevId: 503871374
2 years ago
Adam Cozzette
90ff32c564
Roll-forward of: Add retention and target attributes to descriptor.proto
...
PiperOrigin-RevId: 503691684
2 years ago
Mike Kruskal
7930cd1f9d
Upgrade to Abseil LTS 20230117 ( #11622 )
...
Closes #11622
PiperOrigin-RevId: 503588252
2 years ago
Mike Kruskal
6239ca93bf
Silence further deprecation warning
2 years ago
Mike Kruskal
1752a9e209
Rename test to "full-test"
2 years ago
Mike Kruskal
9ee25ad91d
Silence deprecated usage
2 years ago
Protobuf Team Bot
354fe99c42
internal change
...
PiperOrigin-RevId: 503544432
2 years ago
Protobuf Team Bot
3629ca3b5f
Automated rollback of commit 67ac9eb4e9
.
...
PiperOrigin-RevId: 503521593
2 years ago
Sandy Zhang
17a9313849
Remove RTTI checks for DefaultFieldComparator.
...
PiperOrigin-RevId: 503507674
2 years ago
Protobuf Team Bot
67ac9eb4e9
Migrate away from examining the syntax of a proto file via reflection.
...
PiperOrigin-RevId: 503500019
2 years ago
Protobuf Team Bot
13c0d0756c
[ObjC] Put all enums into one file in multi file mode.
...
Since dead stripping is completely safe with C symbols and enums only generate C
functions, stick them all in one file to slightly reduce the potential cost of
multi file generation.
PiperOrigin-RevId: 503484196
2 years ago
Protobuf Team Bot
5c5dcdd117
Fix a bug in which a possibly invalidated swisstable reference is used.
...
The hashtable could have rehashed and invalidated the reference.
PiperOrigin-RevId: 503442163
2 years ago
Mike Kruskal
79bac90f86
Declare [[nodiscard]] before [[deprecated]] to fix clang-16 breakage.
...
PiperOrigin-RevId: 503309838
2 years ago
Sandy Zhang
bf9c22e100
Breaking Change: Mark final ZeroCopyInputStream, ZeroCopyOutputStream, and DefaultFieldComparator classes.
...
PiperOrigin-RevId: 503297575
2 years ago
Mike Kruskal
119ea4ca9e
Automated rollback of commit 08b97c3120
.
...
PiperOrigin-RevId: 503277235
2 years ago
Protobuf Team Bot
f0c7559594
Automated rollback of commit 58f6216d8d
.
...
PiperOrigin-RevId: 503240831
2 years ago
Mike Kruskal
d538808032
Set up string_view migration for error collector classes.
...
We will continue to support the deprecated versions for the time being, but users should migrate to the string_view alternatives.
PiperOrigin-RevId: 503233401
2 years ago
Mike Kruskal
71ff3fea2e
Automated rollback of commit f60f478f45
.
...
PiperOrigin-RevId: 503231538
2 years ago
Mike Kruskal
84d8b0037b
Deprecate repeated field cleared elements API.
...
This will be removed in a future release.
PiperOrigin-RevId: 503218340
2 years ago
Protobuf Team Bot
514c9a8e2a
Breaking change: Make RepeatedField::GetArena non-const in order to support split RepeatedFields.
...
PiperOrigin-RevId: 503205991
2 years ago
Protobuf Team Bot
58f6216d8d
internal changes
...
PiperOrigin-RevId: 503201591
2 years ago
Protobuf Team Bot
ecac6cd113
Fix typo.
...
PiperOrigin-RevId: 503170967
2 years ago
Mike Kruskal
08b97c3120
Automated rollback of commit 47e7983055
.
...
PiperOrigin-RevId: 503007139
2 years ago
Protobuf Team Bot
9d0821319d
Auto-generate files after cl/502994391
2 years ago
Mike Kruskal
47e7983055
Migrate std::operator+ to Abseil helpers in Java compiler directory.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502994391
2 years ago
Protobuf Team Bot
c5a8eb3ea8
Use Emit() in primitive_field.cc.
...
This change adds new aliases in field.cc for improved readability of Emit() calls.
PiperOrigin-RevId: 502994207
2 years ago
Mike Kruskal
6cadb1875a
Migrate std::operator+ to Abseil helpers in Ruby/PHP/Python compiler directories.
...
This also opportunistically migrates many C-style and STL strings to string_view in touched code.
PiperOrigin-RevId: 502975473
2 years ago
Mike Kruskal
f60f478f45
Enable new JSON field name conflict handling.
...
This will apply uniformly in both proto2 and proto3, taking into account `json_name` options. See https://github.com/protocolbuffers/protobuf/pull/10750 for more details.
PiperOrigin-RevId: 502972769
2 years ago
Protobuf Team Bot
7399913b18
Internal change
...
PiperOrigin-RevId: 502944405
2 years ago
Protobuf Team Bot
29331cbd4c
Automated rollback of commit 112fa94402
.
...
PiperOrigin-RevId: 502941218
2 years ago
Protobuf Team Bot
6a0bd183ee
Do not crash when parsing Anys that contain a proto which is missing require fields.
...
This was a regression compared to the old parser.
PiperOrigin-RevId: 502883245
2 years ago