upb: remove redundant #includes from the foo.upbdefs.h gencode

PiperOrigin-RevId: 576883852
pull/14536/head
Eric Salo 1 year ago committed by Copybara-Service
parent f69f40e3f6
commit c20b337221
  1. 8
      upb_generator/protoc-gen-upbdefs.cc

@ -70,17 +70,13 @@ void WriteDefHeader(upb::FileDefPtr file, Output& output) {
"#define $0_UPBDEFS_H_\n\n"
"#include \"upb/reflection/def.h\"\n"
"#include \"upb/reflection/internal/def_pool.h\"\n"
"#include \"upb/port/def.inc\"\n"
"\n"
"#include \"upb/port/def.inc\" // Must be last.\n"
"#ifdef __cplusplus\n"
"extern \"C\" {\n"
"#endif\n\n",
ToPreproc(file.name()));
output("#include \"upb/reflection/def.h\"\n");
output("\n");
output("#include \"upb/port/def.inc\"\n");
output("\n");
output("extern _upb_DefPool_Init $0;\n", DefInitSymbol(file));
output("\n");

Loading…
Cancel
Save