Automated rollback of commit 694d7935747a5b4eac351b757ad8ff22599c8077.
[google-protobuf.git] / upb_generator / minitable / generator.h
blob1422974457670999f7ebf3293452c14e45b28059
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC. All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
8 #include "upb/reflection/def.hpp"
9 #include "upb_generator/common.h"
10 #include "upb_generator/file_layout.h"
11 #include "upb_generator/plugin.h"
13 namespace upb {
14 namespace generator {
16 struct MiniTableOptions {
17 bool bootstrap = false;
18 bool one_output_per_message = false;
19 bool strip_nonfunctional_codegen = false;
22 void WriteMiniTableSource(const DefPoolPair& pools, upb::FileDefPtr file,
23 const MiniTableOptions& options, Output& output);
24 void WriteMiniTableMultipleSources(const DefPoolPair& pools,
25 upb::FileDefPtr file,
26 const MiniTableOptions& options,
27 Plugin* plugin);
28 void WriteMiniTableHeader(const DefPoolPair& pools, upb::FileDefPtr file,
29 const MiniTableOptions& options, Output& output);
31 } // namespace generator
32 } // namespace upb