Nathan Baulch
e4cbc79ab4
Fix minor typos ( #17682 )
...
Just thought I'd contribute some typo fixes that keep tripping up CI/CD checks in my projects. Nothing controversial (hopefully), just 174 simple fixes.
Use the following command to get a quick and dirty summary of the specific corrections made:
```shell
git diff HEAD^! --word-diff-regex='\w+' -U0 \
| grep -E '\[\-.*\-\]\{\+.*\+\}' \
| sed -r 's/.*\[\-(.*)\-\]\{\+(.*)\+\}.*/\1 \2/' \
| sort | uniq -c | sort -n
```
FWIW, the top typos are:
* trimed → trimmed (37)
* substract → subtract (7)
* qualifed → qualified (7)
* extesion → extension (6)
* mising → missing (5)
* btye → byte (4)
* likey → likely (4)
* candicate → candidate (3)
* decriptor → descriptor (3)
* inherting → inheriting (3)
* colletion → collection (3)
* caluclated → calculated (3)
* unititialized → uninitialized (3)
* implemting → implementing (3)
* binrary → binary (3)
* descripor → descriptor (3)
* negitive → negative (3)
Closes #17682
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/17682 from NathanBaulch:typos d41762d137
PiperOrigin-RevId: 677074418
2 months ago
Hong Shin
290f28871f
Introduce upb_ByteSize
...
Naïve computation of a serialized upb message
PiperOrigin-RevId: 670990379
3 months ago
Joshua Haberman
c841627af4
Use `default_compatible_with` instead of specifying `compatible_with` on every target.
...
This also increases compliance by adding `default_applicable_licenses` to several `BUILD` files that previously did not have it.
PiperOrigin-RevId: 670784686
3 months ago
Joshua Haberman
8422e9795f
Migrated upb to use Copybara-standard stripping.
...
This CL is mostly a no-op, except that now google3-only code is actually stripped from OSS, instead of being preserved in `# begin:google_only` blocks.
This follows the conventions of the greater Copybara ecosystem.
PiperOrigin-RevId: 669513564
3 months ago
Mike Kruskal
5695a882bd
Move -Werror to our test/dev bazelrc files.
...
Putting it into BUILD files unintentionally forces it on all our downstream users. Instead, we just want to enable this during testing and let them choose for themselves in their builds.
Note, that this expands the scope of -Werror to our entire repo for CI, so a bunch of fixes and opt-outs had to be applied to get this change passing.
Closed #14714
PiperOrigin-RevId: 666903224
3 months ago
Protobuf Team Bot
d0395408aa
Fix outputted command for usage of update_failure_list.py
...
PiperOrigin-RevId: 654738180
4 months ago
Joshua Haberman
85c7cc24e0
Add an indirection to sub-messages pointers to allow for static tree shaking.
...
PiperOrigin-RevId: 640369522
6 months ago
Hong Shin
0645439efa
Introduce upb_EncodeStatus_String and upb_DecodeStatus_String
...
Wrapper languages can now use these helpers to get human-friendly
error codes as opposed to manually re-mapping.
PiperOrigin-RevId: 634112262
6 months ago
Hong Shin
335edb909f
update decode_fast.c to assert that non-const messages are not frozen
...
PiperOrigin-RevId: 627393634
7 months ago
Protobuf Team Bot
b8bb56df4c
Change Rust-upb to use upb_Encode and upb_Decode directly, instead of going through the upb C gencode.
...
PiperOrigin-RevId: 623474125
8 months ago
Éamonn McManus
0013736b04
Fix typo in `kUpb_EncodeOption_SkipUnkown`.
...
It is about encoding, not printing.
PiperOrigin-RevId: 622979373
8 months ago
Hong Shin
09529fe018
Update reader.c to initialize i inside loop
...
PiperOrigin-RevId: 622958098
8 months ago
Protobuf Team Bot
d5a435fb4b
Rename 'length delimited' to 'length prefixed'
...
PiperOrigin-RevId: 621597812
8 months ago
Protobuf Team Bot
c6f6a3291e
Add Length-Delimited Encode and Decode functions to upb.
...
PiperOrigin-RevId: 621510731
8 months ago
Protobuf Team Bot
d7f032ad15
Move private definitions out of //bazel
...
This is needed to make protobuf/bazel package minimal for other proto rules.
Keep 4 public bzl files in upb/bazel. They end up under protobuf/bazel, and they are legitimately used by other repositories.
Move upb_proto_library_internal/* under bazel/private. Those are utilities used in the rules. Moving them one level deeper makes protobuf/bazel package clean for other rules.
Move build_defs.bzl and amalgamation under /upb/bazel. Those are utilities used in the build.
Move lua.BUILD and python* uner /python/dist. Those are used in the WORKSPACE dependency setup.
PiperOrigin-RevId: 621442236
8 months ago
Hong Shin
f520cf3dbf
upb:decode initialize int inside loop for upb_DecodeLongVarintReturn
...
PiperOrigin-RevId: 621284070
8 months ago
Mike Kruskal
b6032d72e3
Add basic upb cmake support.
...
libupb will always be statically linked, and currently doesn't ever install itself.
PiperOrigin-RevId: 615136389
9 months ago
Eric Salo
b0d3a787cc
upb: Simplify inline functions in mini_table/ and mem/ and wire/ and message/
...
PiperOrigin-RevId: 605413999
10 months ago
Eric Salo
f212cc23d7
upb: use upb_MessageValue in upb_Extension
...
PiperOrigin-RevId: 602785269
10 months ago
Eric Salo
98843d15ac
upb: attempt to reduce the direct use of UPB_PRIVATE() fields
...
PiperOrigin-RevId: 602270576
10 months ago
Eric Salo
7b6a845ab7
upb: implement immutability
...
PiperOrigin-RevId: 601848001
10 months ago
Eric Salo
5bded04d28
upb: add 'static' to UPB_FORCEINLINE()
...
PiperOrigin-RevId: 601525709
10 months ago
Eric Salo
9d625a1df7
upb: fix the map encoder to stop dying under ubsan
...
PiperOrigin-RevId: 601004095
10 months ago
Eric Salo
07f784a2f3
upb: tag _upb_Message_GetOrCreateExtension() as UPB_PRIVATE()
...
PiperOrigin-RevId: 600653849
10 months ago
Eric Salo
7c5ff29979
upb: add upb_MiniTableExtension_CType()
...
PiperOrigin-RevId: 599313198
10 months ago
Eric Salo
72275ded70
upb: move upb_Message definition back into upb/message/
...
PiperOrigin-RevId: 598741329
10 months ago
Eric Salo
5c5f092606
upb: implement upb_Message
...
PiperOrigin-RevId: 597662892
11 months ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
11 months ago
Protobuf Team Bot
d4dfb9c4a6
Add kUpb_DecodeOption_AlwaysValidateUtf8 decode option, to force UTF-8 validation of proto2 strings.
...
PiperOrigin-RevId: 597341799
11 months ago
Eric Salo
bdf24b2e0d
upb: add 'static' to some wire decoder functions
...
PiperOrigin-RevId: 596390524
11 months ago
Eric Salo
9debd6b10a
upb: merge upb:message_accessors into upb:message
...
PiperOrigin-RevId: 595137531
11 months ago
Eric Salo
4ba7d27201
upb: implement _upb_Message_ClearOneofCase()
...
PiperOrigin-RevId: 595018281
11 months ago
Eric Salo
4f1eba857a
upb: lock down the internal headers for upb:wire_reader
...
PiperOrigin-RevId: 595002227
11 months ago
Eric Salo
64dbf0dba4
upb: delete the aliases for upb:hash, upb:lex, upb:reflection_internal
...
PiperOrigin-RevId: 594992691
11 months ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
11 months ago
Eric Salo
1fc0e72416
upb: make :wire internal headers private
...
PiperOrigin-RevId: 594337191
11 months ago
Adam Cozzette
4ec9170bcd
Fix layering check for usage of gtest
...
To satisfy the layering check, we need to depend on :gtest for the headers, in
addition to :gtest_main which provides the main() function.
There are a bunch of formatting changes as a side effect of this, but they
should be harmless.
PiperOrigin-RevId: 594318263
11 months ago
Eric Salo
090c3adbf2
upb: start consolidating the upb/message/ build targets
...
PiperOrigin-RevId: 594074354
11 months ago
Eric Salo
e397296217
upb: restore the mini_table:internal target
...
PiperOrigin-RevId: 593870914
11 months ago
Joshua Haberman
ca58c35e24
Added `explicit` to a single-arg constructor to fix a ClangTidy warning.
...
This is the only remaining ClangTidy warning in this directory.
PiperOrigin-RevId: 593867029
11 months ago
Eric Salo
3c3d77158f
upb: add :test_srcs targets for cmake on GH
...
PiperOrigin-RevId: 593854176
11 months ago
Eric Salo
f50ea84d19
upb: the triumphant return of upb/mem:internal
...
PiperOrigin-RevId: 593835739
11 months ago
Eric Salo
2fb0b93d9d
upb: tighten up and lock down upb/wire/
...
PiperOrigin-RevId: 593821827
11 months ago
Eric Salo
b997cb6d8d
upb: add a non-void typedef for upb_Message
...
PiperOrigin-RevId: 592863926
11 months ago
Eric Salo
de7f589d44
upb: eliminate :mini_table_internal
...
PiperOrigin-RevId: 592392732
11 months ago
Eric Salo
e3ed59102c
upb: replumb upb_Arena to be substantially more opaque
...
PiperOrigin-RevId: 592345066
11 months ago
Eric Salo
121896da15
upb: add upb_Message_ExtensionByIndex()
...
PiperOrigin-RevId: 592091162
11 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
11 months ago
Eric Salo
5b7bafc60e
upb: upb_Message_Extension -> upb_Extension
...
PiperOrigin-RevId: 592075816
11 months ago
Eric Salo
a4a98bdcc0
upb: tag upb_Array.size as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592035282
11 months ago