ydb-plugin-on-one-line-attrs.patch 1015 B

12345678910111213141516171819202122
  1. --- a/src/google/protobuf/compiler/cpp/file.cc (0493be282efcece0bb95a5f970ede895072fe7f8)
  2. +++ b/src/google/protobuf/compiler/cpp/file.cc (0ee9b261e62e35e2fa69209db9c8787ac99ad867)
  3. @@ -556,8 +556,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx, io::Printer* p) {
  4. };
  5. };
  6. - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  7. - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const $type$ $name$;
  8. + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const $type$ $name$;
  9. )cc");
  10. }
  11. @@ -579,8 +578,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx, io::Printer* p) {
  12. };
  13. };
  14. - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  15. - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 $type$ $name$;
  16. + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 $type$ $name$;
  17. )cc");
  18. for (int i = 0; i < generator->descriptor()->field_count(); ++i) {