From 9f1722b117cbe33637e71ae797cdf0294b28b9df Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Thu, 3 Oct 2024 13:02:30 -0700 Subject: [PATCH] rename protoc-gen-upb-protos to protoc-gen-hpb PiperOrigin-RevId: 681998046 --- hpb/bazel/hpb_proto_library.bzl | 2 +- hpb_generator/{protoc-gen-upb-protos.cc => protoc-gen-hpb.cc} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename hpb_generator/{protoc-gen-upb-protos.cc => protoc-gen-hpb.cc} (100%) diff --git a/hpb/bazel/hpb_proto_library.bzl b/hpb/bazel/hpb_proto_library.bzl index c14130e89a..e7004ca00d 100644 --- a/hpb/bazel/hpb_proto_library.bzl +++ b/hpb/bazel/hpb_proto_library.bzl @@ -214,7 +214,7 @@ _upb_cc_proto_library_aspect = aspect( "_gen_upbprotos": attr.label( executable = True, cfg = "exec", - default = "//src/google/protobuf/compiler/hpb:protoc-gen-upb-protos", + default = "//src/google/protobuf/compiler/hpb:protoc-gen-hpb", ), "_protoc": attr.label( executable = True, diff --git a/hpb_generator/protoc-gen-upb-protos.cc b/hpb_generator/protoc-gen-hpb.cc similarity index 100% rename from hpb_generator/protoc-gen-upb-protos.cc rename to hpb_generator/protoc-gen-hpb.cc index 201bbee2df..99fda5a7ee 100644 --- a/hpb_generator/protoc-gen-upb-protos.cc +++ b/hpb_generator/protoc-gen-hpb.cc @@ -134,10 +134,10 @@ void WriteHeader(const protobuf::FileDescriptor* file, Output& output, #ifndef $0_HPB_PROTO_H_ #define $0_HPB_PROTO_H_ +#include "google/protobuf/hpb/repeated_field.h" + #include "absl/status/statusor.h" #include "absl/strings/string_view.h" - -#include "google/protobuf/hpb/repeated_field.h" )cc", ToPreproc(file->name()));