Skip to content

Commit

Permalink
Automated rollback of commit 23aada2. (#19692)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706827598

Co-authored-by: Protobuf Team Bot <protobuf-github-bot@google.com>
  • Loading branch information
zhangskz and protobuf-github-bot authored Dec 17, 2024
1 parent 8b9d76c commit 1772657
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 143 deletions.
3 changes: 1 addition & 2 deletions src/google/protobuf/any.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions src/google/protobuf/api.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/google/protobuf/compiler/cpp/enum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ absl::flat_hash_map<absl::string_view, std::string> EnumVars(
const EnumValueDescriptor* min, const EnumValueDescriptor* max) {
auto classname = ClassName(enum_, false);
return {
{"DEPRECATED", enum_->options().deprecated() ? "[[deprecated]]" : ""},
{"Enum", std::string(enum_->name())},
{"Enum_", ResolveKeyword(enum_->name())},
{"Msg_Enum", classname},
Expand Down Expand Up @@ -163,7 +162,7 @@ void EnumGenerator::GenerateDefinition(io::Printer* p) {
}},
},
R"cc(
enum $DEPRECATED $$Msg_Enum_annotated$ : int {
enum $Msg_Enum_annotated$ : int {
$values$,
$open_enum_sentinels$,
};
Expand Down
4 changes: 1 addition & 3 deletions src/google/protobuf/compiler/cpp/message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ std::vector<Sub> ClassVars(const Descriptor* desc, Options opts) {
{"Msg", ClassName(desc, false)},
{"pkg::Msg", QualifiedClassName(desc, opts)},
{"pkg.Msg", desc->full_name()},
{"deprecated", desc->options().deprecated() ? "[[deprecated]]" : ""},

// Old-style names, to be removed once all usages are gone in this and
// other files.
Expand Down Expand Up @@ -2058,8 +2057,7 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* p) {
)cc");
}}},
R"cc(
class $dllexport_decl $$deprecated $$classname$ final
: public $superclass$
class $dllexport_decl $$classname$ final : public $superclass$
/* @@protoc_insertion_point(class_definition:$full_name$) */ {
public:
inline $classname$() : $classname$(nullptr) {}
Expand Down
3 changes: 1 addition & 2 deletions src/google/protobuf/compiler/java/java_features.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions src/google/protobuf/compiler/plugin.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/google/protobuf/cpp_features.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1772657

Please sign in to comment.