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
29a024831f
Remove protos::upb_cc_proto_library_copts__for_generated_code_only_do_not_use
...
PiperOrigin-RevId: 663017124
4 months ago
Hong Shin
e535b00dde
Delete protos::repeated_field.h
...
PiperOrigin-RevId: 662979637
4 months ago
Hong Shin
7a039dd177
Remove repeated_field_iterator (protos)
...
PiperOrigin-RevId: 662933968
4 months ago
Hong Shin
1937e7645f
Expunge protos_internal in totality
...
PiperOrigin-RevId: 662897498
4 months ago
Hong Shin
fda2669a52
Remove upb/protos/bazel/*
...
PiperOrigin-RevId: 662077251
4 months ago
Hong Shin
f066157be5
Expunge protos_extension_lock entirely
...
PiperOrigin-RevId: 660444393
4 months ago
Hong Shin
090edb7a77
replace protos namespace from {repeated_field, repeated_field_iterator} with hpb
...
PiperOrigin-RevId: 659995152
4 months ago
Hong Shin
0811818d01
Delete protos README
...
PiperOrigin-RevId: 659572087
4 months ago
Hong Shin
aea6dfc495
Remove protos_traits.h
...
PiperOrigin-RevId: 659536470
4 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
a0387c1923
Remove protos.cc - abrogated by hpb.cc
...
PiperOrigin-RevId: 655176487
4 months ago
Hong Shin
133136cd9a
Migrate internal.h to hpb + update fwd hdr
...
PiperOrigin-RevId: 652504901
5 months ago
Hong Shin
ab78e2fc1d
protos -> hpb namespace transition :: minimal slice
...
PiperOrigin-RevId: 651111836
5 months ago
Hong Shin
36dc83f066
superficial file rename protos_* -> hpb_*
...
PiperOrigin-RevId: 650640353
5 months ago
Protobuf Team Bot
e2c4d0f27e
Automated Code Change
...
PiperOrigin-RevId: 650549584
5 months ago
Hong Shin
fba399ad35
Remove protos/requires.h
...
PiperOrigin-RevId: 650374125
5 months ago
Hong Shin
096b139192
move upb/hpb_generator -> protobuf/compiler/hpb
...
PiperOrigin-RevId: 649112245
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
968087eb61
protos abrogation stage 1 - rename :: hpb for protos_generator
...
In this first stage, we rename the directory from protos_generator to hpb_generator, updating all necessary BUILD files and #includes.
PiperOrigin-RevId: 642600953
6 months ago
Hong Shin
1aae78549a
upb_cc_proto_library.bzl: replace body of _filter_none with list comprehension
...
PiperOrigin-RevId: 641927931
6 months ago
Mike Kruskal
81c0ec381a
Avoid calling absl::InitializeLog in protoc with MSVC
...
The recent github runner image update changes the MSVC version, and InitializeLog now crashes in optimized builds. Until Abseil works with MSVC, we can just log to stderr in protoc.
PiperOrigin-RevId: 641024759
6 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
Joshua Haberman
2124e2687d
Removed obsolete compatibility code from Bazel rules.
...
PiperOrigin-RevId: 639040724
6 months ago
Hong Shin
b94e117faa
Port C++20 Requires to it's C++17 equivalent for reuse across protos
...
PiperOrigin-RevId: 635894605
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
Eric Salo
9118be944d
upb: extension/basefield setters are now public functions
...
PiperOrigin-RevId: 623355801
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
Protobuf Team Bot
83ec410d30
Internal change
...
PiperOrigin-RevId: 619377672
8 months ago
Tiago Quelhas
774627235e
Automated Code Change
...
PiperOrigin-RevId: 617586334
8 months ago
Protobuf Team Bot
d9727cd657
Internal change
...
PiperOrigin-RevId: 617220518
9 months ago
Protobuf Team Bot
2dd2dfaca3
Rename use_cpp_toolchain in protos/bazel/cc_proto_library.bzl, for consistency.
...
This now matches the upb_use_cpp_toolchain function name in the equivalent function in third_party/upb/bazel/upb_proto_library_internal/cc_library_func.bzl.
PiperOrigin-RevId: 606257428
10 months ago