Protobuf Team Bot
e41ffb01a2
Auto-generate files after cl/613765356
9 months ago
Mike Kruskal
58312a6f2e
Check in upb bootstrap gencode for future cmake usage
...
PiperOrigin-RevId: 613757614
9 months ago
Protobuf Team Bot
f2242d7136
Add proto full name support for tracing.
...
Creates a tracing helper function to associate mini tables with proto full names to use for upcoming upb metrics collectors.
PiperOrigin-RevId: 613290255
9 months ago
Protobuf Team Bot
e8244da7c6
Adds mutable extension accessors to the codegen for upb C for getting mutable extension messages.
...
PiperOrigin-RevId: 613017999
9 months ago
Mike Kruskal
e26193d168
Add no-op support for the experimental_strip_nonfunctional_codegen parameter.
...
This will be used for codegen tests to verify that an editions upgrade hasn't changed anything meaningful.
PiperOrigin-RevId: 608660846
10 months ago
Eric Salo
dad74e2db7
upb: remove reflection:internal as a dep in upb_generator/
...
PiperOrigin-RevId: 601286979
11 months ago
Joshua Haberman
50d0421170
Separate MiniTable code generator into a separate library target.
...
This will allow it to be linked into other code generators.
PiperOrigin-RevId: 599171495
11 months ago
Eric Salo
e6d8669958
upb: fix gencode bug with Map<*, bytes>
...
PiperOrigin-RevId: 597678769
11 months ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
11 months ago
Marcel Hlopko
36d344b63f
Automated rollback of commit 0ce457f6e7
.
...
PiperOrigin-RevId: 597327159
11 months ago
Eric Salo
c026907a5d
upb: replace public universal hazzer with non-universal hazzers
...
PiperOrigin-RevId: 597126288
11 months ago
Protobuf Team Bot
0ce457f6e7
Adds mutable extension accessors to the codegen for upb C and adds a `::protos::MutableExtension` method to upb C++ for getting a mutable extension.
...
PiperOrigin-RevId: 597088960
11 months ago
Eric Salo
c02f943f1a
upb: distinguish between fields and extensions in the public clear() accessors
...
PiperOrigin-RevId: 596588385
11 months ago
Eric Salo
64dbf0dba4
upb: delete the aliases for upb:hash, upb:lex, upb:reflection_internal
...
PiperOrigin-RevId: 594992691
12 months ago
Protobuf Team Bot
19c800c4f8
Fix warning from missing (void) on a 0-arg function.
...
PiperOrigin-RevId: 594080778
12 months ago
Eric Salo
2fb0b93d9d
upb: tighten up and lock down upb/wire/
...
PiperOrigin-RevId: 593821827
12 months ago
Joshua Haberman
238538b6ce
Fixed breaking ARM tests by properly aligning default options.
...
This char array is interpreted as a proto, so it needs pointer alignment at least.
PiperOrigin-RevId: 592935088
12 months ago
Eric Salo
b997cb6d8d
upb: add a non-void typedef for upb_Message
...
PiperOrigin-RevId: 592863926
12 months ago
Eric Salo
de7f589d44
upb: eliminate :mini_table_internal
...
PiperOrigin-RevId: 592392732
12 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
12 months ago
Eric Salo
a4a98bdcc0
upb: tag upb_Array.size as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592035282
1 year ago
Eric Salo
fa62c92071
upb: stop generating hazzers for repeated fields
...
PiperOrigin-RevId: 591299107
1 year ago
Eric Salo
0755621dd2
Automated rollback of commit 3c75c331d3
.
...
PiperOrigin-RevId: 588239901
1 year ago
Eric Salo
3c75c331d3
upb: inline upb_Message_New()
...
PiperOrigin-RevId: 588189563
1 year ago
Eric Salo
b64c6e193b
upb: implement upb_Message_ShallowClone()/Copy()
...
PiperOrigin-RevId: 588088145
1 year ago
Eric Salo
848a2bfd41
upb: tag upb_MiniTableField:number as UPB_ONLYBITS()
...
PiperOrigin-RevId: 587127664
1 year ago
Eric Salo
0e6607a5c9
upb: tag upb_MiniTableField:mode as UPB_ONLYBITS()
...
PiperOrigin-RevId: 587022805
1 year ago
Mike Kruskal
cba41100fb
Force plugins to specify their edition support window.
...
This is similar to what we did for built-in generators, and gives us the ability to create a new edition without subtley breaking generators that don't support it yet.
PiperOrigin-RevId: 586756816
1 year ago
Eric Salo
bb5322a194
upb: lock down upb_MiniTable (mostly)
...
PiperOrigin-RevId: 586542236
1 year ago
Eric Salo
d0c85637e7
upb: lock down upb_MiniTableSub
...
PiperOrigin-RevId: 586187469
1 year ago
Eric Salo
19ef3a58cf
upb: lock down MiniTableField
...
PiperOrigin-RevId: 586171362
1 year ago
Eric Salo
21133d554f
upb: lock down upb_MiniTableExtension
...
PiperOrigin-RevId: 585817227
1 year ago
Eric Salo
f6b38b5838
upb: lock down upb_MiniTableEnum
...
PiperOrigin-RevId: 585733953
1 year ago
Eric Salo
3ce2c573b3
upb: start to lock down upb_Array
...
PiperOrigin-RevId: 585696951
1 year ago
Eric Salo
7fa050d8c1
upb: move IsSubMessage() and IsRepeatedOrMap() from mini_table/internal/field.h
...
PiperOrigin-RevId: 584082079
1 year ago
Kevin King
9b8b2760f8
Move MessageInit function to cc_library
...
This allows rust generator to use this function directly in order to generate symbol names for Message MiniTables.
PiperOrigin-RevId: 584054361
1 year ago
Protobuf Team Bot
2a2ae9b176
Remove unused ext_scope variable from ExtensionIdentBase.
...
PiperOrigin-RevId: 581979197
1 year ago
Hong Shin
b837d17d2c
Update to shortened headers in upb_generator
...
PiperOrigin-RevId: 580281151
1 year ago
Joshua Haberman
cf3a6f5868
Enabled editions support for upb generated code.
...
This required enabling the feature in the code generator and fixing a few edge cases around label and type.
Also added tests to verify the special cases, and to verify that required fields work as expected.
PiperOrigin-RevId: 580263087
1 year ago
Eric Salo
9a610f02f8
upb: delete unused function in the C code generator
...
PiperOrigin-RevId: 578873644
1 year ago
Jakob Buchgraber
ebdd7e3eb6
Add private accessors for maps to be used by Rust's Map implementation.
...
PiperOrigin-RevId: 577749942
1 year ago
Eric Salo
c20b337221
upb: remove redundant #includes from the foo.upbdefs.h gencode
...
PiperOrigin-RevId: 576883852
1 year ago
Eric Salo
a286c9b56d
upb: create upb/reflection/BUILD
...
PiperOrigin-RevId: 576631037
1 year ago
Eric Salo
90a7de5063
upb: use upb_c_proto_library() instead of upb_proto_library()
...
PiperOrigin-RevId: 574674453
1 year ago
Eric Salo
f0392ecc42
upb: s/std::endl/'\n' in upb_generator
...
PiperOrigin-RevId: 572511446
1 year ago
Eric Salo
c38ba8d8be
upb: unroll a loop in upb_generator that only needs to iterate once
...
PiperOrigin-RevId: 572332570
1 year ago
Eric Salo
745eff7951
upb: fix staleness tests
...
PiperOrigin-RevId: 572051108
1 year ago
Eric Salo
5b6543edb5
upb: first attempt at implementing name mangling for minitable symbols
...
PiperOrigin-RevId: 571636273
1 year ago
Protobuf Team Bot
e912bc2e3a
Internal change
...
PiperOrigin-RevId: 570208557
1 year ago
Adam Cozzette
12c7bb0750
Rename `upbc` to `upb_generator`
...
This makes the file layout a bit more consistent with the `protos ->
protos_generator` pattern. I also replaced the `upbc` namespace with
`upb::generator`.
PiperOrigin-RevId: 569264372
1 year ago