Hong Shin
f77e770486
Empty out protos.h!
...
PiperOrigin-RevId: 673862431
3 months ago
Hong Shin
7ace14c513
Abrogate protos::Arena with hpb::Arena
...
PiperOrigin-RevId: 673395989
3 months ago
Hong Shin
0b98d419fa
Efface blank protos::internal namespace
...
PiperOrigin-RevId: 672966501
3 months ago
Hong Shin
877b02506c
Introduce hpb::interop::upb::GetMessage; née protos::internal::GetInternalMsg
...
PiperOrigin-RevId: 672659339
3 months ago
Hong Shin
44e9777103
Adios, protos::ptr!
...
PiperOrigin-RevId: 672567642
3 months ago
Hong Shin
d46874c047
Remove protos::internal::Serialize shim
...
PiperOrigin-RevId: 671494278
3 months ago
Hong Shin
37f3ced360
Migrate internal::SetExtension from protos to hpb
...
PiperOrigin-RevId: 671415520
3 months ago
Hong Shin
b01eee755e
Migrate PrivateAccess from protos to hpb
...
PiperOrigin-RevId: 670965004
3 months ago
Hong Shin
1f237eff07
Abrogate protos::internal::ExtensionIdentifier in favor of hpb::internal::ExtensionIdentifier
...
PiperOrigin-RevId: 670690046
3 months ago
Hong Shin
fa15d09055
Introduce and migrate to hpb::interop::upb::GetArena from protos::internal::GetArena
...
PiperOrigin-RevId: 668955137
3 months ago
Hong Shin
d4a899538a
Abrogate protos::internal::CreateMessageProxy with hpb::interop::upb::MakeHandle
...
PiperOrigin-RevId: 668937831
3 months ago
Hong Shin
facfa3f45e
Migrate GetExtension from protos to hpb
...
PiperOrigin-RevId: 668534183
3 months ago
Hong Shin
f13b593e1c
Remove protos::HasExtension shim
...
PiperOrigin-RevId: 668515165
3 months ago
Hong Shin
9c12fee65e
Migrate protos::Serialize to hpb::Serialize
...
PiperOrigin-RevId: 668493817
3 months ago
Hong Shin
b6928aa9a6
Migrate SetExtension from protos to hpb
...
PiperOrigin-RevId: 668073531
3 months ago
Hong Shin
6e2fe5b8c9
Update all refs from protos::internal::CreateMessage to hpb::interop::upb::MakeCHandle
...
PiperOrigin-RevId: 667690021
3 months ago
Hong Shin
d4fc727be4
Abrogate protos::Parse with hpb::Parse
...
PiperOrigin-RevId: 667643856
3 months ago
Hong Shin
a33a81b163
Move ExtensionNumber from protos to hpb
...
PiperOrigin-RevId: 666453855
3 months ago
Hong Shin
caa8f9dbf8
Move hpb::internal::CreateMessage to hpb::interop::upb::CreateMessage
...
PiperOrigin-RevId: 666438557
3 months ago
Hong Shin
582201a95e
Update GetMiniTable namespace from protos::internal to hpb::interop::upb
...
PiperOrigin-RevId: 666061587
3 months ago
Hong Shin
bc6f561151
Remove unused protos::internal::{DeepCopy, DeepClone, GetOrPromoteExtension, GetUpbExtension, HasExtensionOrUnknown, MoveExtension}
...
PiperOrigin-RevId: 665934981
3 months ago
Hong Shin
d2c7f60714
Remove protos::CreateMessage, protos::ClearExtension both unused
...
Update ExtensionNotFoundError from protos to hpb
PiperOrigin-RevId: 665855910
3 months ago
Hong Shin
9a24fc999d
Abrogate protos::MessageAllocationError with hpb::MessageAllocationError
...
PiperOrigin-RevId: 665549987
3 months ago
Hong Shin
8bb789e462
Introduce hpb::interop::upb and hpb::internal::backend::upb
...
Migrate ::hpb::internal::GetMiniTable to ::hpb::interop::upb::GetMiniTable
hpb.h now shows signs of backend-awareness, #including upb.h if the backend is known to be upb. If no backend is picked, we error out at this time since we solely support upb.
ClearMessage has been migrated to backend-aware hpb.
PiperOrigin-RevId: 665527832
3 months ago
Hong Shin
7a4319428b
hpb cleanup: abrogate protos::{ClearMessage,CloneMessage,CreateMessage,DeepCopy} with hpb::{...}
...
PiperOrigin-RevId: 665350963
3 months ago
Hong Shin
c75e50febb
Obliterate protos namespace from hpb.h!
...
PiperOrigin-RevId: 658477450
4 months ago
Hong Shin
824f6ac9e9
Migrate core (sans Parse & Serialize) and extension funcs from `protos` to `hpb`
...
This entails:
- CreateMessage
- ClearMessage
- CloneMessage
- DeepCopy
- HasExtension
- ClearExtension
- SetExtension
- GetExtension
PiperOrigin-RevId: 657386985
4 months ago
Hong Shin
9f5aed39ea
Migrate all of `protos::internal` into `hpb::internal`
...
`hpb.cc` has also been transformed to be 100% hpb.
PiperOrigin-RevId: 657183219
4 months ago
Hong Shin
165d2c76ed
Fold 80% of `protos::internal` into `hpb::internal`:
...
```
- PrivateAccess
- GetInternalMsg
- CreateMessage
- CreateMessageProxy
- GetExtensionNumber
- ExtensionIdentifier
```
PiperOrigin-RevId: 655597227
4 months ago
Hong Shin
36dc83f066
superficial file rename protos_* -> hpb_*
...
PiperOrigin-RevId: 650640353
5 months ago
Hong Shin
d7087fc901
Move over upb/protos -> hpb (note that hpb is now a sibling of upb, not a child)
...
PiperOrigin-RevId: 647378884
5 months ago
Hong Shin
b57c374146
protos: Collapse ClearMessage template
...
We introduce Ptr removal so that our helper functions can be agnostically passed in a Ptr<T> or a T*.
We utilize SFINAE to determine if PtrOrRaw. If the target is const, or not in {T, T*, Ptr<T>}, the template will not match and be discarded (but still compile successfully).
PiperOrigin-RevId: 640198851
6 months ago
Protobuf Team Bot
396d661767
Add support for setting extensions with Ptr<Extension> in Upb C++ protos.
...
PiperOrigin-RevId: 633646216
7 months ago
Protobuf Team Bot
d9727cd657
Internal change
...
PiperOrigin-RevId: 617220518
8 months ago
Eric Salo
f9994e1c8d
upb: remove the last remaining direct upb-internal deps from upb/protos/
...
PiperOrigin-RevId: 600933411
10 months ago
Eric Salo
f9af78e7ee
upb: upb_MiniTable_GetOrPromoteExtension() no longer returns a (upb_Extension*)
...
PiperOrigin-RevId: 600662130
10 months ago
Marcel Hlopko
36d344b63f
Automated rollback of commit 0ce457f6e7
.
...
PiperOrigin-RevId: 597327159
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
b997cb6d8d
upb: add a non-void typedef for upb_Message
...
PiperOrigin-RevId: 592863926
11 months ago
Eric Salo
5b7bafc60e
upb: upb_Message_Extension -> upb_Extension
...
PiperOrigin-RevId: 592075816
12 months ago
Eric Salo
21133d554f
upb: lock down upb_MiniTableExtension
...
PiperOrigin-RevId: 585817227
1 year ago
Protobuf Team Bot
0fab773c1d
Update remainder of upb to new short license style.
...
PiperOrigin-RevId: 584116886
1 year ago
Adam Cozzette
501ececd39
Reorganize upb file structure
...
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.
The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.
PiperOrigin-RevId: 568651768
1 year ago
Sandy Zhang
81068e8e8c
Internal change
...
PiperOrigin-RevId: 566426899
1 year ago
Adam Cozzette
7286ffceb2
Merge the protobuf and upb Bazel repos
...
A couple weeks ago we moved upb into the protobuf Git repo, and this change
continues the merger of the two repos by making them into a single Bazel repo.
This was mostly a matter of deleting upb's WORKSPACE file and fixing up a bunch
of references to reflect the new structure.
Most of the changes are pretty mechanical, but one thing that needed more
invasive changes was the Python script for generating CMakeLists.txt,
make_cmakelists.py. The WORKSPACE file it relied on no longer exists with this
change, so I updated it to hardcode the information it needed from that file.
PiperOrigin-RevId: 564810016
1 year ago
Protobuf Team Bot
91114633bb
Do not expose mutable methods in the CProxy.
...
PiperOrigin-RevId: 562800851
1 year ago
Protobuf Team Bot
cb8da95e91
Fix SetExtension value semantics.
...
Move SetExtension common code out of header to protos.cc.
PiperOrigin-RevId: 561829364
1 year ago
Protobuf Team Bot
de59ed8541
Fix SetExtension to fuse the right arenas.
...
Also, make sure the operation has no side effects if the arenas can't be fused.
PiperOrigin-RevId: 561378595
1 year ago
Adam Cozzette
047df98dea
Move upb-x/ back to upb/
...
This is the second attempt to fix our Git history. This should allow
"git blame" to work correctly in the upb/ directory even though our
automation unexpectedly blew away that directory.
1 year ago