Hong Shin
ac6e4c0e3b
Initial cleanup of hpb_proto_library.bzl
...
- update some refs protos -> hpb
- utilize proto_common.bzl
- remove _generate_output_file
PiperOrigin-RevId: 685704538
2 months ago
Hong Shin
6ecaefc628
Move GetExtension and ExtensionNumber from hpb.h to extension.h
...
PiperOrigin-RevId: 684118480
2 months ago
Hong Shin
9bce530117
Move hpb::internal::{MoveExtension, SetExtension} and hpb::{MoveExtension, SetExtension} from hpb.h to extension.h
...
This delta makes hpb.cc empty, and was therefore eliminated.
PiperOrigin-RevId: 683606379
2 months ago
Hong Shin
9f1722b117
rename protoc-gen-upb-protos to protoc-gen-hpb
...
PiperOrigin-RevId: 681998046
2 months ago
Hong Shin
811cc30578
Prefer hpb::Arena to upb::Arena in hpb.h
...
PiperOrigin-RevId: 681595326
2 months ago
Hong Shin
73fe084436
Move out hpb::HasExtension and hpb::ClearExtension to extension.h
...
PiperOrigin-RevId: 681576188
2 months ago
Hong Shin
a089fad8bd
Completely expunge protos!! 👋
...
PiperOrigin-RevId: 681457876
2 months ago
Hong Shin
aaec548849
Move MessageLock to message_lock.cc
...
Move hpb::internal::{Serialize, HasExtensionOrUnknown, GetOrPromoteExtension, DeepCopy, DeepClone} to message_lock.h as they all use the message lock
absl status helpers are now housed in status.h
PiperOrigin-RevId: 681432239
2 months ago
Hong Shin
1db4fdc236
Introduce set_alias to hpb
...
In certain cases, it is useful to share submessages across multiple parent messages.
proto2::cpp has a mechanism for this, so we add the hpb equivalent.
For this initial impl, we stipulate that the arenas must be exactly the same. We may explore broadening the constraint to allow for all fused arenas.
PiperOrigin-RevId: 681169537
2 months ago
Hong Shin
5c9551457f
Internal Change
...
PiperOrigin-RevId: 680718209
2 months ago
Protobuf Team Bot
d81e6f7019
Automated rollback of commit df5a4d63e8
.
...
PiperOrigin-RevId: 679603910
2 months ago
Hong Shin
df5a4d63e8
Move MessageLock to message_lock.cc
...
Move hpb::internal::{Serialize, HasExtensionOrUnknown, GetOrPromoteExtension, DeepCopy, DeepClone} to message_lock.h as they all use the message lock
absl status helpers are now housed in status.h
PiperOrigin-RevId: 679307322
2 months ago
Hong Shin
8681742a14
migrate UpbStrFromStringView out of hpb.h into interop
...
+renamed to CopyToUpbStringView
PiperOrigin-RevId: 676485604
2 months ago
Hong Shin
aa5818d2aa
Introduce CreateMessage w/ default-init msg inside hpb::interop::upb
...
PiperOrigin-RevId: 676071677
2 months ago
Hong Shin
c29dfb5e2d
Disallow toplevel hpb::Ptr access to it's internal arena
...
```
hpb::Arena arena;
auto foo = hpb::CreateMessage<Foo>(arena);
foo.GetInternalArena(); // this call will now be impossible
```
Before this CL, any Proxy/Ptr could get its internal arena. This
unnecessarily leaks upb internals when they should be
interacted with via hpb::interop::upb::*.
PiperOrigin-RevId: 676038573
2 months ago
Hong Shin
7620bbf3c6
Temporary removal of hpb BUILD files for OSS while we refactor.
...
At some point we will re-introduce these with the corresponding CI tests to ensure they stay green.
PiperOrigin-RevId: 675691367
3 months ago
Hong Shin
cbdc330f80
Rename upb_cc_proto_library_copts to hpb_proto_library_copts
...
PiperOrigin-RevId: 675592784
3 months ago
Hong Shin
9d835e65c6
Migrate UpbStrToStringView from hpb to hpb::interop::upb::FromUpbStringView
...
PiperOrigin-RevId: 673959164
3 months ago
Hong Shin
4c13f48847
Automated rollback of commit 9a9e5cf7ff
.
...
PiperOrigin-RevId: 673940081
3 months ago
Hong Shin
ada599128c
hpb: Move add_const_if_T_is_const to template_help.h and delete traits.h
...
PiperOrigin-RevId: 673906280
3 months ago
Hong Shin
3d9f6dc1e1
rm upb_cc_proto_library.bzl
...
PiperOrigin-RevId: 673832587
3 months ago
Hong Shin
9a9e5cf7ff
hpb: Remove DeepCopy - no extant users
...
PiperOrigin-RevId: 673815064
3 months ago
Hong Shin
7ace14c513
Abrogate protos::Arena with hpb::Arena
...
PiperOrigin-RevId: 673395989
3 months ago
Hong Shin
69dbe6fd6f
hpb: Migrate MoveMessage out of internal to interop
...
PiperOrigin-RevId: 673115936
3 months ago
Hong Shin
877b02506c
Introduce hpb::interop::upb::GetMessage; née protos::internal::GetInternalMsg
...
PiperOrigin-RevId: 672659339
3 months ago
Hong Shin
9c1fc6ca0b
Internal Change
...
PiperOrigin-RevId: 672562127
3 months ago
Hong Shin
08f324f199
Introduce hpb::Arena stub
...
PiperOrigin-RevId: 671509864
3 months ago
Hong Shin
b01eee755e
Migrate PrivateAccess from protos to hpb
...
PiperOrigin-RevId: 670965004
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
Joshua Haberman
e4449ba248
Harmonize license rules between google3 and OSS
...
This simplifies upb by removing differences between google3 and OSS.
This also points upb at the protobuf license, instead of keeping a separate copy around for upb.
PiperOrigin-RevId: 669447145
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
1b44ce0fee
Extract hpb::ExtensionRegistry, hpb::internal::{ExtensionMiniTableProvider, ExtensionIdentifer} to extension.h
...
PiperOrigin-RevId: 668643168
3 months ago
Hong Shin
facfa3f45e
Migrate GetExtension from protos to hpb
...
PiperOrigin-RevId: 668534183
3 months ago
Hong Shin
d4fc727be4
Abrogate protos::Parse with hpb::Parse
...
PiperOrigin-RevId: 667643856
3 months ago
Hong Shin
caa8f9dbf8
Move hpb::internal::CreateMessage to hpb::interop::upb::CreateMessage
...
PiperOrigin-RevId: 666438557
3 months ago
Hong Shin
94c50325ca
Internal Change
...
PiperOrigin-RevId: 666414131
3 months ago
Hong Shin
582201a95e
Update GetMiniTable namespace from protos::internal to hpb::interop::upb
...
PiperOrigin-RevId: 666061587
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
0c8c922681
hbp: Rename and rehouse extension_lock -> internal/message_lock
...
PiperOrigin-RevId: 665459381
3 months ago
Hong Shin
f5f94f334b
Introduce hpb/internal/internal.h
...
Moved PrivateAccess and some helper funcs
PiperOrigin-RevId: 664831322
3 months ago
Hong Shin
cb845a5962
hpb: introduce ptr.h and break out template helpers into internal/template_help.h
...
PiperOrigin-RevId: 663441859
4 months ago
Hong Shin
6c2be3bfc7
Make hpb:traits private visibility again
...
PiperOrigin-RevId: 663388295
4 months ago
Hong Shin
6879b81364
Remove trailing mangle for generated_protos_support
...
and rename to hpb (!)
PiperOrigin-RevId: 663373078
4 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
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
6739739ade
hpb: rm unused ctor
...
PiperOrigin-RevId: 662149022
4 months ago
Hong Shin
1ec060bb04
re-point upb_cc_proto_library_bzl from upb to hpb and utilize hpb_proto_library
...
PiperOrigin-RevId: 660821782
4 months ago