Protobuf Team Bot
d01a9120ab
Add an allowlist for implementation reserved fields for the C++ implementation. This also includes `protoc`.
...
The allowlist is currently empty.
It uses a simple text format to avoid reentrant dependencies into protobuf
parsing, and allow sharing between languages.
PiperOrigin-RevId: 493075113
2 years ago
Matt Kulukundis
bc441c9892
Switch from using count to contains and use heterogenous lookup where available
...
PiperOrigin-RevId: 493053915
2 years ago
Protobuf Team Bot
09cfed19e7
Add a printer test case for newlines surrounding a sub Emit() call.
...
PiperOrigin-RevId: 493033566
2 years ago
Martijn Vels
192cd096b1
Add a `WriteCord()` method to `ZeroCopyInputStream`
...
This change introduces the `WriteCord()` method in `ZeroCopyInputStream` with a default implementation efficiently writing the cord data onto the stream. Subsequent changes will introduce explicit Cord based input and output streams that will optimize the default implementation by providing zero-copy optimized implementations when reading and writing cord data from/to underlying encoded cord data.
PiperOrigin-RevId: 493030763
2 years ago
Martijn Vels
0783c82bb4
Unify string and cord cleanup nodes in TaggedNode
...
PiperOrigin-RevId: 493022903
2 years ago
Protobuf Team Bot
3e4019d803
Add an allowlist for implementation reserved fields for the C++ implementation. This also includes `protoc`.
...
The allowlist is currently empty.
It uses a simple text format to avoid reentrant dependencies into protobuf
parsing, and allow sharing between languages.
PiperOrigin-RevId: 493019427
2 years ago
nickreid
47aecb734b
Emit a newline after `@file:Suppress("DEPRECATION")`
...
PiperOrigin-RevId: 492585270
2 years ago
Protobuf Team Bot
e535f95976
[ObjC] Go back from Printer::Emit() to Printer::Print()
...
PiperOrigin-RevId: 492559629
2 years ago
Protobuf Team Bot
605c24e649
[ObjC] Add GenerateFile helper to factor out common code.
...
Few minor cleanups along the way.
PiperOrigin-RevId: 492546618
2 years ago
Protobuf Team Bot
c04f842613
Open source google/protobuf/bridge/message_set.proto
...
PiperOrigin-RevId: 492515720
2 years ago
Martijn Vels
599c1a46ab
Override ReadCord() to be implemented explicitly
...
PiperOrigin-RevId: 492461499
2 years ago
Protobuf Team Bot
1b1e399e2e
FileOutputStream: Properly pass block_size to CopyingOutputStreamAdaptor
...
PiperOrigin-RevId: 492403550
2 years ago
Mike Kruskal
9a85ed241d
Internal Changes
...
PiperOrigin-RevId: 492317667
2 years ago
deannagarcia
9b37daf1ce
Add "public" modifier to Kotlin generated code
...
My previous attempt to do this https://github.com/protocolbuffers/protobuf/pull/11068#issuecomment-1333645637 missed this instance.
2 years ago
Protobuf Team Bot
370028c75d
[ObjC] Check the Printer failure status.
...
This was added a little while ago to Printer, so update to inspect it, as more
things use Emit, it likely matters more.
PiperOrigin-RevId: 492229456
2 years ago
Protobuf Team Bot
c928bf3f25
[ObjC] Convert GenerateSource over to Printer::Emit.
...
PiperOrigin-RevId: 492228634
2 years ago
Protobuf Team Bot
4df096f1e9
[ObjC] Move GenerateHeader over to Printer::Emit.
...
Update ImportWriter to have a second Emit api for the runtime files to
streamline things a bit better.
PiperOrigin-RevId: 492210147
2 years ago
Martijn Vels
75d31befc6
Implement ZeroCopyInputStream::ReadCord() in terms of absl::CordBuffer
...
PiperOrigin-RevId: 492078322
2 years ago
Protobuf Team Bot
09a08d1f75
LazyField::IsInitialized instead of LazyField::Get for oneof.
...
Oneof lazy fields can also benefit from prior verification just like
regular lazy fields.
PiperOrigin-RevId: 492014341
2 years ago
Protobuf Team Bot
568672c733
Fix doc typo
...
PiperOrigin-RevId: 491989064
2 years ago
Protobuf Team Bot
3b00bfff78
[ObjC] Update ImportWriter to use Printer::Emit.
...
PiperOrigin-RevId: 491967581
2 years ago
Deanna Garcia
33d1070fc4
Expose internal setExtension method for Kotlin
...
PiperOrigin-RevId: 491816141
2 years ago
Protobuf Team Bot
11bc195441
Updating version.json and repo version numbers to: 21.10
2 years ago
Christian Blichmann
670b4f7232
Include header for Abseil's `flat_hash_set<>`
...
PiperOrigin-RevId: 491612837
2 years ago
Protobuf Team Bot
726aace07c
[ObjC] Fix a clang tidy warning about const usage and make the FileGenerator const.
...
PiperOrigin-RevId: 491512974
2 years ago
Protobuf Team Bot
ed63a2c7e4
Updating version.json and repo version numbers to: 21.10-rc0
2 years ago
Protobuf Team Bot
afb5a268f1
Remove sometimes-ambiguous use of operator '<<'.
...
PiperOrigin-RevId: 491466927
2 years ago
Protobuf Team Bot
0a979584ee
Auto-generate files after cl/491417852
2 years ago
Protobuf Team Bot
585b41a2dd
Remove _internal_has_XXX APIs and directly check presence (e.g. has_bits, oneof case).
...
PiperOrigin-RevId: 491417852
2 years ago
Deanna Garcia
9a1ef54b47
Allow message name "List" without conflict
...
PiperOrigin-RevId: 491380902
2 years ago
Kenji Abe
7845696b1a
Add more public modifiers
2 years ago
Deanna Garcia
6edfc80428
Cherrypick public modifier
2 years ago
Protobuf Team Bot
7a7bdde799
[ObjC] Final const cleanups for generator.
...
PiperOrigin-RevId: 491355456
2 years ago
Protobuf Team Bot
e8a9dcb0df
[ObjC] Move the has bits computation to the ctor.
...
This lets the source generation method become const since it doesn't have to
update any internal state.
PiperOrigin-RevId: 491354897
2 years ago
Protobuf Team Bot
2221a0111d
Add support for lazy fields to TDP.
...
PiperOrigin-RevId: 491353089
2 years ago
Protobuf Team Bot
cd6180d4c3
[ObjC] Generator const cleanups
...
Label some more methods as const.
Remove some method decls that don't exist (not sure where they came from).
PiperOrigin-RevId: 491344000
2 years ago
Protobuf Team Bot
64d3eeb1b3
[ObjC] Move all Message, Enum, & Extension Generators up to the File.
...
Create/Collect all the MessageGenerators/EnumGenerators/ExtensionGeneators up at
the FileGenerator level and remove the need for some helpers and need for
generation apis to recurse through the generators.
The only change to the .pbobjc.m files is positionally where the enum support
for nested enums appears, it now is the same order as it was in the .pbobjc.h
files instead of being closer the the type it was nested in.
PiperOrigin-RevId: 491343515
2 years ago
Protobuf Team Bot
96dd2ea63f
Refactor proto2::Map to move all the key-only operations into a key-only base
...
class. This reduces code duplication.
It also enables more generic access for the table-driven parser.
PiperOrigin-RevId: 490574869
2 years ago
Protobuf Team Bot
a0e7ecf766
Simplify protobuf Java message builder by removing methods that calls the super class only.
...
PiperOrigin-RevId: 490386420
2 years ago
Protobuf Team Bot
3e5fe0061f
Cleanup arena.h template dispatch.
...
CreateInternal dispatch is not necessary, both sides did the same.
OwnInternal can be changed with a std::conditional_t.
PiperOrigin-RevId: 490267078
2 years ago
Protobuf Team Bot
280439822a
Internal change
...
PiperOrigin-RevId: 489449484
2 years ago
Protobuf Team Bot
e0a1da0868
Correctly discard unknown enum name strings in an array when parsing a repeated field.
...
This was a regression in the new parser.
PiperOrigin-RevId: 489292231
2 years ago
Protobuf Team Bot
030ed9c8df
Split "zero" trait into more targeted traits and make them more precise.
...
Swap is trivial regardless of default values.
Message types can initialize with zero, but not clear with zero.
PiperOrigin-RevId: 489282728
2 years ago
Karol M. Langner
6e75fa152e
Add repeated and nested message fields to deprecated test proto
...
PiperOrigin-RevId: 489237987
2 years ago
Protobuf Team Bot
72977f951c
Add ability for custom a MessagePrinter to default back to the default implementation.
...
Prior to the CL we cannot use the printer as that would trigger a recursion. So the only way out would be to create a new printer that has the same abilities as the current printer.
PiperOrigin-RevId: 489024852
2 years ago
Protobuf Team Bot
c862c1cab4
Internal change
...
PiperOrigin-RevId: 488991785
2 years ago
Protobuf Team Bot
4a122474ce
[ObjC] Update generation to include the new closed enum information.
...
Also bump the generation version since the generate files require the newer
library version.
PiperOrigin-RevId: 488711994
2 years ago
Protobuf Team Bot
d4adb43bb4
proto2::Map improvements
...
PiperOrigin-RevId: 488413737
2 years ago
Protobuf Team Bot
0e7d311b79
Use ARM-optimized varint decoding functions with table-driven parser.
...
PiperOrigin-RevId: 488411424
2 years ago
Mike Kruskal
a13c2fbc9e
Internal change
...
PiperOrigin-RevId: 487925995
2 years ago