Avoid recursive call to `Insert` in the flat case.
[google-protobuf.git] / upb_generator / plugin_bootstrap.h
blob87afc06fbbd9b5306194498c54693fb0a78c16be
1 #ifndef THIRD_PARTY_UPB_UPB_GENERATOR_PLUGIN_BOOTSTRAP_H_
2 #define THIRD_PARTY_UPB_UPB_GENERATOR_PLUGIN_BOOTSTRAP_H_
4 // IWYU pragma: begin_exports
6 #if defined(UPB_BOOTSTRAP_STAGE) && UPB_BOOTSTRAP_STAGE == 0
7 // This header is checked in.
8 #include "upb_generator/stage0/google/protobuf/compiler/plugin.upb.h"
9 #elif UPB_BOOTSTRAP_STAGE == 1
10 // This header is generated at build time by the bootstrapping process.
11 #include "upb_generator/stage1/google/protobuf/compiler/plugin.upb.h"
12 #else
13 // This is the normal header, generated by upb_c_proto_library().
14 #include "google/protobuf/compiler/plugin.upb.h"
15 #endif
17 // IWYU pragma: end_exports
19 #endif // THIRD_PARTY_UPB_UPB_GENERATOR_PLUGIN_BOOTSTRAP_H_