From bb73767cba3cef8818d589ef93d2357bd149d4e9 Mon Sep 17 00:00:00 2001 From: Yuhanun Citgez Date: Sun, 14 Feb 2021 16:08:49 +0100 Subject: [PATCH 1/2] Resolved an issue where NO_DESTROY and CONSTINIT were in incorrect order --- src/google/protobuf/compiler/cpp/cpp_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/cpp/cpp_file.cc b/src/google/protobuf/compiler/cpp/cpp_file.cc index 6d4412b22ad8..70941d8b9bee 100644 --- a/src/google/protobuf/compiler/cpp/cpp_file.cc +++ b/src/google/protobuf/compiler/cpp/cpp_file.cc @@ -454,7 +454,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx, // enough. However, the empty destructor fails to be elided in some // configurations (like non-opt or with certain sanitizers). NO_DESTROY is // there just to improve performance and binary size in these builds. - format("PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY $1$ $2$;\n", + format("PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT $1$ $2$;\n", DefaultInstanceType(generator->descriptor_, options_), DefaultInstanceName(generator->descriptor_, options_)); From db00359ed81a86a04466fdfcaf9727d4f5e48e4c Mon Sep 17 00:00:00 2001 From: Yuhanun Citgez Date: Sun, 14 Feb 2021 19:14:38 +0100 Subject: [PATCH 2/2] Resovled issue in the .pb.cc files --- src/google/protobuf/any.pb.cc | 2 +- src/google/protobuf/api.pb.cc | 6 +-- src/google/protobuf/compiler/plugin.pb.cc | 8 ++-- src/google/protobuf/descriptor.pb.cc | 54 +++++++++++------------ src/google/protobuf/duration.pb.cc | 2 +- src/google/protobuf/empty.pb.cc | 2 +- src/google/protobuf/field_mask.pb.cc | 2 +- src/google/protobuf/source_context.pb.cc | 2 +- src/google/protobuf/struct.pb.cc | 8 ++-- src/google/protobuf/timestamp.pb.cc | 2 +- src/google/protobuf/type.pb.cc | 10 ++--- src/google/protobuf/wrappers.pb.cc | 18 ++++---- 12 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/google/protobuf/any.pb.cc b/src/google/protobuf/any.pb.cc index dea9cd648d83..aea98c08f6dc 100644 --- a/src/google/protobuf/any.pb.cc +++ b/src/google/protobuf/any.pb.cc @@ -30,7 +30,7 @@ struct AnyDefaultTypeInternal { Any _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY AnyDefaultTypeInternal _Any_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnyDefaultTypeInternal _Any_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fany_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fany_2eproto = nullptr; diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index 64aa6c0af023..c26b2130ec34 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -35,7 +35,7 @@ struct ApiDefaultTypeInternal { Api _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ApiDefaultTypeInternal _Api_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ApiDefaultTypeInternal _Api_default_instance_; constexpr Method::Method( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : options_() @@ -54,7 +54,7 @@ struct MethodDefaultTypeInternal { Method _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY MethodDefaultTypeInternal _Method_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MethodDefaultTypeInternal _Method_default_instance_; constexpr Mixin::Mixin( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -67,7 +67,7 @@ struct MixinDefaultTypeInternal { Mixin _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY MixinDefaultTypeInternal _Mixin_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MixinDefaultTypeInternal _Mixin_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fapi_2eproto[3]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr; diff --git a/src/google/protobuf/compiler/plugin.pb.cc b/src/google/protobuf/compiler/plugin.pb.cc index 84a90f6963a0..f59504d00fd6 100644 --- a/src/google/protobuf/compiler/plugin.pb.cc +++ b/src/google/protobuf/compiler/plugin.pb.cc @@ -32,7 +32,7 @@ struct VersionDefaultTypeInternal { Version _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY VersionDefaultTypeInternal _Version_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VersionDefaultTypeInternal _Version_default_instance_; constexpr CodeGeneratorRequest::CodeGeneratorRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : file_to_generate_() @@ -47,7 +47,7 @@ struct CodeGeneratorRequestDefaultTypeInternal { CodeGeneratorRequest _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CodeGeneratorRequestDefaultTypeInternal _CodeGeneratorRequest_default_instance_; constexpr CodeGeneratorResponse_File::CodeGeneratorResponse_File( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -62,7 +62,7 @@ struct CodeGeneratorResponse_FileDefaultTypeInternal { CodeGeneratorResponse_File _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_; constexpr CodeGeneratorResponse::CodeGeneratorResponse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : file_() @@ -76,7 +76,7 @@ struct CodeGeneratorResponseDefaultTypeInternal { CodeGeneratorResponse _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_; } // namespace compiler PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fcompiler_2fplugin_2eproto[4]; diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 443a8bfa2d4a..8ceaa19718d3 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -28,7 +28,7 @@ struct FileDescriptorSetDefaultTypeInternal { FileDescriptorSet _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_; constexpr FileDescriptorProto::FileDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : dependency_() @@ -51,7 +51,7 @@ struct FileDescriptorProtoDefaultTypeInternal { FileDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_; constexpr DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : options_(nullptr) @@ -65,7 +65,7 @@ struct DescriptorProto_ExtensionRangeDefaultTypeInternal { DescriptorProto_ExtensionRange _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_; constexpr DescriptorProto_ReservedRange::DescriptorProto_ReservedRange( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : start_(0) @@ -78,7 +78,7 @@ struct DescriptorProto_ReservedRangeDefaultTypeInternal { DescriptorProto_ReservedRange _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_; constexpr DescriptorProto::DescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : field_() @@ -99,7 +99,7 @@ struct DescriptorProtoDefaultTypeInternal { DescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_; constexpr ExtensionRangeOptions::ExtensionRangeOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_(){} @@ -111,7 +111,7 @@ struct ExtensionRangeOptionsDefaultTypeInternal { ExtensionRangeOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_; constexpr FieldDescriptorProto::FieldDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -135,7 +135,7 @@ struct FieldDescriptorProtoDefaultTypeInternal { FieldDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_; constexpr OneofDescriptorProto::OneofDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -148,7 +148,7 @@ struct OneofDescriptorProtoDefaultTypeInternal { OneofDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_; constexpr EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : start_(0) @@ -161,7 +161,7 @@ struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal { EnumDescriptorProto_EnumReservedRange _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_; constexpr EnumDescriptorProto::EnumDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_() @@ -177,7 +177,7 @@ struct EnumDescriptorProtoDefaultTypeInternal { EnumDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_; constexpr EnumValueDescriptorProto::EnumValueDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -191,7 +191,7 @@ struct EnumValueDescriptorProtoDefaultTypeInternal { EnumValueDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_; constexpr ServiceDescriptorProto::ServiceDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : method_() @@ -205,7 +205,7 @@ struct ServiceDescriptorProtoDefaultTypeInternal { ServiceDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_; constexpr MethodDescriptorProto::MethodDescriptorProto( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -222,7 +222,7 @@ struct MethodDescriptorProtoDefaultTypeInternal { MethodDescriptorProto _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_; constexpr FileOptions::FileOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -255,7 +255,7 @@ struct FileOptionsDefaultTypeInternal { FileOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FileOptionsDefaultTypeInternal _FileOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FileOptionsDefaultTypeInternal _FileOptions_default_instance_; constexpr MessageOptions::MessageOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -271,7 +271,7 @@ struct MessageOptionsDefaultTypeInternal { MessageOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_; constexpr FieldOptions::FieldOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -291,7 +291,7 @@ struct FieldOptionsDefaultTypeInternal { FieldOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_; constexpr OneofOptions::OneofOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_(){} @@ -303,7 +303,7 @@ struct OneofOptionsDefaultTypeInternal { OneofOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_; constexpr EnumOptions::EnumOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -317,7 +317,7 @@ struct EnumOptionsDefaultTypeInternal { EnumOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_; constexpr EnumValueOptions::EnumValueOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -330,7 +330,7 @@ struct EnumValueOptionsDefaultTypeInternal { EnumValueOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_; constexpr ServiceOptions::ServiceOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -343,7 +343,7 @@ struct ServiceOptionsDefaultTypeInternal { ServiceOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_; constexpr MethodOptions::MethodOptions( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : uninterpreted_option_() @@ -358,7 +358,7 @@ struct MethodOptionsDefaultTypeInternal { MethodOptions _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_; constexpr UninterpretedOption_NamePart::UninterpretedOption_NamePart( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_part_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -371,7 +371,7 @@ struct UninterpretedOption_NamePartDefaultTypeInternal { UninterpretedOption_NamePart _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_; constexpr UninterpretedOption::UninterpretedOption( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_() @@ -389,7 +389,7 @@ struct UninterpretedOptionDefaultTypeInternal { UninterpretedOption _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_; constexpr SourceCodeInfo_Location::SourceCodeInfo_Location( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : path_() @@ -407,7 +407,7 @@ struct SourceCodeInfo_LocationDefaultTypeInternal { SourceCodeInfo_Location _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_; constexpr SourceCodeInfo::SourceCodeInfo( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : location_(){} @@ -419,7 +419,7 @@ struct SourceCodeInfoDefaultTypeInternal { SourceCodeInfo _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_; constexpr GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : path_() @@ -435,7 +435,7 @@ struct GeneratedCodeInfo_AnnotationDefaultTypeInternal { GeneratedCodeInfo_Annotation _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_; constexpr GeneratedCodeInfo::GeneratedCodeInfo( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : annotation_(){} @@ -447,7 +447,7 @@ struct GeneratedCodeInfoDefaultTypeInternal { GeneratedCodeInfo _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fdescriptor_2eproto[27]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fdescriptor_2eproto[6]; diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index d7e4e0035aa1..d04e32b0afc4 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -29,7 +29,7 @@ struct DurationDefaultTypeInternal { Duration _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY DurationDefaultTypeInternal _Duration_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DurationDefaultTypeInternal _Duration_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fduration_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fduration_2eproto = nullptr; diff --git a/src/google/protobuf/empty.pb.cc b/src/google/protobuf/empty.pb.cc index 22328bda3839..42d7f3be06c0 100644 --- a/src/google/protobuf/empty.pb.cc +++ b/src/google/protobuf/empty.pb.cc @@ -27,7 +27,7 @@ struct EmptyDefaultTypeInternal { Empty _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EmptyDefaultTypeInternal _Empty_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EmptyDefaultTypeInternal _Empty_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fempty_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fempty_2eproto = nullptr; diff --git a/src/google/protobuf/field_mask.pb.cc b/src/google/protobuf/field_mask.pb.cc index d1f5698ff109..5a23fc7f2b44 100644 --- a/src/google/protobuf/field_mask.pb.cc +++ b/src/google/protobuf/field_mask.pb.cc @@ -28,7 +28,7 @@ struct FieldMaskDefaultTypeInternal { FieldMask _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FieldMaskDefaultTypeInternal _FieldMask_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FieldMaskDefaultTypeInternal _FieldMask_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ffield_5fmask_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2ffield_5fmask_2eproto = nullptr; diff --git a/src/google/protobuf/source_context.pb.cc b/src/google/protobuf/source_context.pb.cc index 3d8401764738..641862ef39fc 100644 --- a/src/google/protobuf/source_context.pb.cc +++ b/src/google/protobuf/source_context.pb.cc @@ -28,7 +28,7 @@ struct SourceContextDefaultTypeInternal { SourceContext _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY SourceContextDefaultTypeInternal _SourceContext_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SourceContextDefaultTypeInternal _SourceContext_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fsource_5fcontext_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fsource_5fcontext_2eproto = nullptr; diff --git a/src/google/protobuf/struct.pb.cc b/src/google/protobuf/struct.pb.cc index 1458a9bed5f6..61e9f80190e6 100644 --- a/src/google/protobuf/struct.pb.cc +++ b/src/google/protobuf/struct.pb.cc @@ -27,7 +27,7 @@ struct Struct_FieldsEntry_DoNotUseDefaultTypeInternal { Struct_FieldsEntry_DoNotUse _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_; constexpr Struct::Struct( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : fields_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} @@ -39,7 +39,7 @@ struct StructDefaultTypeInternal { Struct _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY StructDefaultTypeInternal _Struct_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StructDefaultTypeInternal _Struct_default_instance_; constexpr Value::Value( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : _oneof_case_{}{} @@ -51,7 +51,7 @@ struct ValueDefaultTypeInternal { Value _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ValueDefaultTypeInternal _Value_default_instance_; constexpr ListValue::ListValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : values_(){} @@ -63,7 +63,7 @@ struct ListValueDefaultTypeInternal { ListValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListValueDefaultTypeInternal _ListValue_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fstruct_2eproto[4]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2fstruct_2eproto[1]; diff --git a/src/google/protobuf/timestamp.pb.cc b/src/google/protobuf/timestamp.pb.cc index 2c81eb4582cf..ac920a1612ef 100644 --- a/src/google/protobuf/timestamp.pb.cc +++ b/src/google/protobuf/timestamp.pb.cc @@ -29,7 +29,7 @@ struct TimestampDefaultTypeInternal { Timestamp _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY TimestampDefaultTypeInternal _Timestamp_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TimestampDefaultTypeInternal _Timestamp_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ftimestamp_2eproto[1]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2ftimestamp_2eproto = nullptr; diff --git a/src/google/protobuf/type.pb.cc b/src/google/protobuf/type.pb.cc index a4a3c2706991..e2f7a8fc535e 100644 --- a/src/google/protobuf/type.pb.cc +++ b/src/google/protobuf/type.pb.cc @@ -34,7 +34,7 @@ struct TypeDefaultTypeInternal { Type _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY TypeDefaultTypeInternal _Type_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TypeDefaultTypeInternal _Type_default_instance_; constexpr Field::Field( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : options_() @@ -57,7 +57,7 @@ struct FieldDefaultTypeInternal { Field _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FieldDefaultTypeInternal _Field_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FieldDefaultTypeInternal _Field_default_instance_; constexpr Enum::Enum( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : enumvalue_() @@ -74,7 +74,7 @@ struct EnumDefaultTypeInternal { Enum _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumDefaultTypeInternal _Enum_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumDefaultTypeInternal _Enum_default_instance_; constexpr EnumValue::EnumValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : options_() @@ -88,7 +88,7 @@ struct EnumValueDefaultTypeInternal { EnumValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY EnumValueDefaultTypeInternal _EnumValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EnumValueDefaultTypeInternal _EnumValue_default_instance_; constexpr Option::Option( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -101,7 +101,7 @@ struct OptionDefaultTypeInternal { Option _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY OptionDefaultTypeInternal _Option_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OptionDefaultTypeInternal _Option_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ftype_2eproto[5]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[3]; diff --git a/src/google/protobuf/wrappers.pb.cc b/src/google/protobuf/wrappers.pb.cc index d1a956175b52..eb691be511de 100644 --- a/src/google/protobuf/wrappers.pb.cc +++ b/src/google/protobuf/wrappers.pb.cc @@ -28,7 +28,7 @@ struct DoubleValueDefaultTypeInternal { DoubleValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY DoubleValueDefaultTypeInternal _DoubleValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DoubleValueDefaultTypeInternal _DoubleValue_default_instance_; constexpr FloatValue::FloatValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(0){} @@ -40,7 +40,7 @@ struct FloatValueDefaultTypeInternal { FloatValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY FloatValueDefaultTypeInternal _FloatValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FloatValueDefaultTypeInternal _FloatValue_default_instance_; constexpr Int64Value::Int64Value( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(PROTOBUF_LONGLONG(0)){} @@ -52,7 +52,7 @@ struct Int64ValueDefaultTypeInternal { Int64Value _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY Int64ValueDefaultTypeInternal _Int64Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Int64ValueDefaultTypeInternal _Int64Value_default_instance_; constexpr UInt64Value::UInt64Value( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(PROTOBUF_ULONGLONG(0)){} @@ -64,7 +64,7 @@ struct UInt64ValueDefaultTypeInternal { UInt64Value _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_; constexpr Int32Value::Int32Value( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(0){} @@ -76,7 +76,7 @@ struct Int32ValueDefaultTypeInternal { Int32Value _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY Int32ValueDefaultTypeInternal _Int32Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT Int32ValueDefaultTypeInternal _Int32Value_default_instance_; constexpr UInt32Value::UInt32Value( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(0u){} @@ -88,7 +88,7 @@ struct UInt32ValueDefaultTypeInternal { UInt32Value _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_; constexpr BoolValue::BoolValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(false){} @@ -100,7 +100,7 @@ struct BoolValueDefaultTypeInternal { BoolValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY BoolValueDefaultTypeInternal _BoolValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BoolValueDefaultTypeInternal _BoolValue_default_instance_; constexpr StringValue::StringValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} @@ -112,7 +112,7 @@ struct StringValueDefaultTypeInternal { StringValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY StringValueDefaultTypeInternal _StringValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StringValueDefaultTypeInternal _StringValue_default_instance_; constexpr BytesValue::BytesValue( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : value_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} @@ -124,7 +124,7 @@ struct BytesValueDefaultTypeInternal { BytesValue _instance; }; }; -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY BytesValueDefaultTypeInternal _BytesValue_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BytesValueDefaultTypeInternal _BytesValue_default_instance_; PROTOBUF_NAMESPACE_CLOSE static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fwrappers_2eproto[9]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fwrappers_2eproto = nullptr;