Protobuf Team
7e9e95afaf
fix typos
...
PiperOrigin-RevId: 443737030
3 years ago
Joshua Haberman
3e0890c055
Added support for UnknownFieldSet.
...
PiperOrigin-RevId: 443143448
3 years ago
Joshua Haberman
4978040db4
Rewrote the MessageSet parsing code in the upb decoder to properly handle several edge cases.
...
PiperOrigin-RevId: 442979459
3 years ago
Joshua Haberman
76c7ca9327
Updated API for accessing extensions.
...
PiperOrigin-RevId: 442947856
3 years ago
Protobuf Team
e5468b47f8
Add mini table accessors
...
- Add hazzer, ClearField
- Add bool/int32 accessors
PiperOrigin-RevId: 442906872
3 years ago
Joshua Haberman
fa8b605f78
Implemented MiniDescriptors for proto2 enums.
...
An enum MiniDescriptor simply encodes a set of valid `int32_t` values, so that the protobuf parser can test whether a given enum value is known or not.
The format implemented here is novel and needs to be documented. In short, the format is:
1. base92 values 0-31: 5-bit mask indicating presence or absence of the next five enum values.
2. base92 values 60-91: varint indicating skip over a region of enum values.
Negative enum values are encoded as their `uint32_t` equivalent.
PiperOrigin-RevId: 442892799
3 years ago
Joshua Haberman
1fc983f35f
Added Python deps to upb_deps().
...
PiperOrigin-RevId: 442669011
3 years ago
Joshua Haberman
57e272449c
Revert "Moved system_python dep into upb_deps()."
...
This reverts commit 17052fce40
.
3 years ago
Joshua Haberman
17052fce40
Moved system_python dep into upb_deps().
3 years ago
Protobuf Team
ee6b1abb35
Create targets for UPB release
...
PiperOrigin-RevId: 441496547
3 years ago
Joshua Haberman
6a2c01a7f2
Internal doc reshuffling. The generated .svg files will return soon, generated by a GitHub Action.
...
PiperOrigin-RevId: 441201617
3 years ago
Protobuf Team
9f371b781b
Set explicit mnemonic for Starlark action.
...
This will allow us to differentiate where the action was created.
PiperOrigin-RevId: 441195283
3 years ago
Protobuf Team
e1e7435e70
Internal change
...
PiperOrigin-RevId: 440796832
3 years ago
Joshua Haberman
9cc02bb60d
Rewrote the MessageSet parsing code in the upb decoder to properly handle several edge cases.
...
PiperOrigin-RevId: 440788402
3 years ago
Protobuf Team
bef53686ec
Add support for clear field in upbc.
...
Add support for setting extension field value.
PiperOrigin-RevId: 439365359
3 years ago
Joshua Haberman
7ff1662f97
Removed pre-generated CMake files from the main branch.
...
From now on, these files will live in the "generated" branch only, and a GitHub action will regenerate these files whenever there is a commit to the main branch.
PiperOrigin-RevId: 438879338
3 years ago
Joshua Haberman
98aa7d7add
Fixed GitHub Actions syntax.
...
PiperOrigin-RevId: 438592264
3 years ago
Protobuf Team
e6e73198e3
Ignore recently added pb unit test method
...
PiperOrigin-RevId: 438590118
3 years ago
Joshua Haberman
f32e79a975
Added GitHub Action to build generated files and push them to the `generated` branch.
...
PiperOrigin-RevId: 438583959
3 years ago
Joshua Haberman
a5243ff6d9
Restructure our file syncing so GitHub only files are tracked separately in Piper.
...
PiperOrigin-RevId: 438395194
3 years ago
Joshua Haberman
68b8469245
Set theme jekyll-theme-cayman
3 years ago
Joshua Haberman
8835242b8b
Moved GitHub docs from `doc` -> `docs`. GitHub pages only supports the latter.
...
This will unfortunately break all existing links to the docs. Soon the links should point to upb.dev anyway.
PiperOrigin-RevId: 438138611
3 years ago
Joshua Haberman
b25e7218ef
Call reserve() before push_back().
...
PiperOrigin-RevId: 436318676
3 years ago
Protobuf Team
e80ac6df59
Fix typos
...
PiperOrigin-RevId: 435416635
3 years ago
Copybara-Service
8bc976b951
Merge pull request #554 from haberman:push_back
...
PiperOrigin-RevId: 435158445
3 years ago
Joshua Haberman
c6dae657fb
Reserve elements from vector before calling push_back().
3 years ago
Protobuf Team
b0f55f0879
Reserve vector capacity prior to calling `push_back()` in a loop.
...
PiperOrigin-RevId: 435111851
3 years ago
Theodore Rose
027129bf0f
Merge pull request #552 from protocolbuffers/test_435060849
...
Internal change
3 years ago
Protobuf Team
78f5af8103
Internal change
...
PiperOrigin-RevId: 435060849
3 years ago
Protobuf Team
b8edc7153f
Internal change
...
PiperOrigin-RevId: 435056074
3 years ago
Joshua Haberman
b79b8b3f4d
Merge pull request #550 from haberman/minitable-api
...
Ported code generator to the new mini-table build API
3 years ago
Joshua Haberman
a9e894dbbc
Addressed PR comments.
3 years ago
Joshua Haberman
adff8bd239
Merge pull request #551 from haberman/hash_function
...
Ruby needs the "seed" parameter in our hash function.
3 years ago
Joshua Haberman
99d0b36baa
Change parameter to const void*.
3 years ago
Joshua Haberman
570332dfee
Ruby needs the "seed" parameter in our hash function.
3 years ago
Joshua Haberman
a1a101ab8e
clang-format.
3 years ago
Joshua Haberman
cb55c4d781
Addressed PR comments.
3 years ago
Joshua Haberman
8d148f023e
Clang-format and fixed missing dep.
3 years ago
Joshua Haberman
20e7802fca
Clang-format.
3 years ago
Joshua Haberman
3692e6659f
Reverted decode_fast.c changes. They are not necessary for this PR.
3 years ago
Joshua Haberman
d1a6423600
A bit more refactoring and comments.
3 years ago
Joshua Haberman
75660afaa5
Moved class definitions out of line.
3 years ago
Joshua Haberman
c4ae35070b
Removed asserts we can no longer count on.
3 years ago
Joshua Haberman
911a25e738
Passes nearly all tests!
3 years ago
Joshua Haberman
21e9cc80de
Merge branch 'main' into minitable-api
3 years ago
Joshua Haberman
bb4073cfda
Updated generated code.
3 years ago
Joshua Haberman
273398ca5f
Removed MessageLayout from upbc.
3 years ago
Joshua Haberman
99e0e9fbd5
Merge pull request #549 from haberman/refactor-upbc
...
(NFC) Refactored upbc header generation into smaller methods.
3 years ago
Joshua Haberman
a2004150f8
Merge branch 'refactor-upbc' into minitable-api
3 years ago
Joshua Haberman
169bc6a83c
Changed many strings in the compiler to use "cc" raw strings.
...
These strings can be formatted by clang-format.
3 years ago