We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0040102 commit eef2764Copy full SHA for eef2764
src/google/protobuf/compiler/cpp/cpp_file.cc
@@ -454,7 +454,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx,
454
// enough. However, the empty destructor fails to be elided in some
455
// configurations (like non-opt or with certain sanitizers). NO_DESTROY is
456
// there just to improve performance and binary size in these builds.
457
- format("PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_NO_DESTROY $1$ $2$;\n",
+ format("PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT $1$ $2$;\n",
458
DefaultInstanceType(generator->descriptor_, options_),
459
DefaultInstanceName(generator->descriptor_, options_));
460
0 commit comments