Remove unverified_lazy_message_sets option.

PiperOrigin-RevId: 550453428
pull/13377/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent dd4ffc65cc
commit 4f6fc33c5b
  1. 2
      src/google/protobuf/compiler/cpp/generator.cc
  2. 1
      src/google/protobuf/compiler/cpp/options.h
  3. 3
      src/google/protobuf/compiler/cpp/parse_function_generator.cc

@ -189,8 +189,6 @@ bool CppGenerator::Generate(const FileDescriptor* file,
.emplace(value.substr(pos, next_pos - pos));
pos = next_pos + 1;
} while (pos < value.size());
} else if (key == "unverified_lazy_message_sets") {
file_options.unverified_lazy_message_sets = true;
} else if (key == "force_eagerly_verified_lazy") {
file_options.force_eagerly_verified_lazy = true;
} else if (key == "experimental_tail_call_table_mode") {

@ -77,7 +77,6 @@ struct Options {
bool bootstrap = false;
bool opensource_runtime = false;
bool annotate_accessor = false;
bool unverified_lazy_message_sets = false;
bool profile_driven_inline_string = true;
bool force_split = false;
bool profile_driven_split = true;

@ -175,8 +175,7 @@ void ParseFunctionGenerator::GenerateMethodImpls(io::Printer* printer) {
"const char* $classname$::_InternalParse(const char* ptr,\n"
" ::_pbi::ParseContext* ctx) {\n"
"$annotate_deserialize$");
if (!options_.unverified_lazy_message_sets &&
ShouldVerify(descriptor_, options_, scc_analyzer_)) {
if (ShouldVerify(descriptor_, options_, scc_analyzer_)) {
format(
" ctx->set_lazy_eager_verify_func(&$classname$::InternalVerify);\n");
}

Loading…
Cancel
Save