Eric Salo
384ffc0af8
implement reserved names and ranges for messages and enums
...
https://github.com/protocolbuffers/protobuf/issues/10158
PiperOrigin-RevId: 489285657
2 years ago
Eric Salo
75907f7af9
rename the upb_MiniTable subtypes to follow the upb style guide:
...
upb_MiniTable_Enum -> upb_MiniTableEnum
upb_MiniTable_Extension -> upb_MiniTableExtension
upb_MiniTable_Field -> upb_MiniTableField
upb_MiniTable_File -> upb_MiniTableFile
upb_MiniTable_Sub -> upb_MiniTableSub
PiperOrigin-RevId: 486712960
2 years ago
Eric Salo
f6307877d3
move portability stuff into upb/port/
...
Also delete redundant system #includes that are already pulled in by port/def.inc
PiperOrigin-RevId: 486398989
2 years ago
Eric Salo
d9b6f13cde
remove upb_MtDataEncoder from the public surface
...
PiperOrigin-RevId: 485928803
2 years ago
Eric Salo
c033eff26f
split apart mini_table.c into a new subdir
...
PiperOrigin-RevId: 484352293
2 years ago
Eric Salo
40998462d6
add upb_MtDataEncoder_EncodeExtension()
...
We need to sharpen the distinction between messages and extensions in the mini
descriptor encoder, so split the code paths for each.
PiperOrigin-RevId: 480675339
2 years ago
Joshua Haberman
185d4f09d9
Simplified extension table building slightly by avoiding direct mutation
...
PiperOrigin-RevId: 478953396
2 years ago
Eric Salo
44916d7d27
create reflection_internal library
...
internal declarations are now physically removed from the public headers
PiperOrigin-RevId: 478921131
2 years ago
Joshua Haberman
5d0833f48c
Removed obsolete exemption for closed enums
...
The referenced bug was fixed long ago: https://github.com/protocolbuffers/upb/issues/541
PiperOrigin-RevId: 478870590
2 years ago
Eric Salo
0f585c69af
stop requiring extension fields to have a synthetic oneof
...
https://github.com/protocolbuffers/upb/issues/812
PiperOrigin-RevId: 478527073
2 years ago
Joshua Haberman
128ac1c935
Bugfix for when UPB_TREAT_PROTO2_ENUMS_LIKE_PROTO3 is being used
...
This is not easy to test in google3 since we do not use the flag in Google3. It is only used for Ruby.
PiperOrigin-RevId: 478071539
2 years ago
Eric Salo
b8bec58e01
pull the mini descriptor encoders into their proper .c files
...
Performance neutral but it simplifies the code, shrinks the public surface,
and makes logical sense
PiperOrigin-RevId: 478038589
2 years ago
Eric Salo
1e3deb013d
move message/field modifiers functions out of mini_descriptor_encode.c
...
PiperOrigin-RevId: 477486367
2 years ago
Eric Salo
efd06e46a4
use mini descriptors to build message defs and extension defs
...
PiperOrigin-RevId: 477332937
2 years ago
Eric Salo
38d8430923
simplify makejsonname()
...
PiperOrigin-RevId: 474577074
2 years ago
Eric Salo
00765002ff
- All of reflection now lives in upb/reflection/
...
- Each def type has its own .c file and its own .h file
- Functions that require a builder context are declared in def_builder.h
- The mini descriptor encoders have also been pulled into upb/reflection/
- upb/def.h, upb/def.hpp, upb/reflection.h, and upb/reflection.hpp are now deprecated stubs that point to the new headers
PiperOrigin-RevId: 474459500
2 years ago