1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Option Parsing Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9/////////
10// String table
11
12#if defined(OPTTABLE_STR_TABLE_CODE) || defined(OPTTABLE_CODE)
13
14#ifdef __GNUC__
15#pragma GCC diagnostic push
16#pragma GCC diagnostic ignored "-Woverlength-strings"
17#endif
18static constexpr char OptionStrTableStorage[] =
19 "\0"
20 "-\0"
21 "--\0"
22 "<input>\0"
23 "<unknown>\0"
24 "-c\0"
25 "Maximum number of files to scan concurrently. If 0, use the hardware concurrency.\0"
26 "<ulong>\0"
27 "--help\0"
28 "Display available options\0"
29 "-h\0"
30 "Alias for --help\0"
31 "-i\0"
32 "Host interface to bind to.\0"
33 "<string>\0"
34 "-m\0"
35 "Minimum number of seconds to wait before an on-demand update can betriggered by a request for a buildid which is not in the collection.\0"
36 "<number>\0"
37 "-p\0"
38 "Port to listen on. Set to 0 to bind to any available port.\0"
39 "<uint>\0"
40 "-t\0"
41 "Number of seconds to wait between subsequent automated scans of the filesystem.\0"
42 "<int>\0"
43 "-v\0"
44 "Enable verbose logging.\0"
45 ;
46#ifdef __GNUC__
47#pragma GCC diagnostic pop
48#endif
49
50static constexpr llvm::StringTable
51OptionStrTable = OptionStrTableStorage;
52#undef OPTTABLE_STR_TABLE_CODE
53#endif // OPTTABLE_STR_TABLE_CODE || OPTTABLE_CODE
54
55/////////
56// Tables
57
58#ifdef OPTTABLE_CODE
59static llvm::opt::OptTable::Tables optionTables() {
60 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
61 0 /* prefixes */,
62 1 /* prefixes */, 1 /* '-' */,
63 1 /* prefixes */, 3 /* '--' */
64 };
65
66 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
67 {0, 0},
68 };
69
70 static constexpr unsigned OptionSubCommandIDsTable[] = {
71 0 /* subcommands */
72 };
73
74 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
75 {0, 0, 0, 0, 0},
76 {109, 0, 0, 0, 0},
77 {200, 0, 0, 0, 0},
78 {348, 0, 0, 0, 0},
79 {419, 0, 0, 0, 0},
80 {509, 0, 0, 0, 0},
81 };
82
83 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
84 {6 /* <input> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::InputClass, 0},
85 {14 /* <unknown> */, 0, 0, DefaultVis, 0, 0, 0, 0, llvm::opt::Option::UnknownClass, 0},
86 {24 /* -c */, 27, 0, DefaultVis, 1, 0, 0, 1, llvm::opt::Option::SeparateClass, 0},
87 {117 /* --help */, 124, 0, DefaultVis, 3, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
88 {150 /* -h */, 153, 0, DefaultVis, 1, 0, 4, 0, llvm::opt::Option::FlagClass, 0},
89 {170 /* -i */, 173, 0, DefaultVis, 1, 0, 0, 2, llvm::opt::Option::SeparateClass, 0},
90 {209 /* -m */, 212, 0, DefaultVis, 1, 0, 0, 3, llvm::opt::Option::SeparateClass, 0},
91 {357 /* -p */, 360, 0, DefaultVis, 1, 0, 0, 4, llvm::opt::Option::SeparateClass, 0},
92 {426 /* -t */, 429, 0, DefaultVis, 1, 0, 0, 5, llvm::opt::Option::SeparateClass, 0},
93 {515 /* -v */, 518, 0, DefaultVis, 1, 0, 0, 0, llvm::opt::Option::FlagClass, 0},
94 };
95
96 return {OptionStrTableStorage, OptionPrefixesTable,
97 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
98}
99#undef OPTTABLE_CODE
100#endif // OPTTABLE_CODE
101
102/////////
103// ValuesCode
104
105#ifdef OPTTABLE_VALUES_CODE
106static llvm::StringRef getOptionValuesCode(unsigned ID) {
107 switch (ID) {
108 }
109 return {};
110}
111#undef OPTTABLE_VALUES_CODE
112#endif // OPTTABLE_VALUES_CODE
113/////////
114// Groups
115
116#ifdef OPTION
117
118//////////
119// Options
120
121OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
122OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, DefaultVis, 0, 0, 0, 0, 0, 0)
123OPTION(1, 24 /* -c */, max_concurrency, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 27, 0, 109, 0, 0)
124OPTION(3, 117 /* --help */, help, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 124, 0, 0, 0, 0)
125OPTION(1, 150 /* -h */, anonymous_0, Flag, INVALID, help, 0, 0, DefaultVis, 0, 153, 0, 0, 0, 0)
126OPTION(1, 170 /* -i */, host_interface, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 173, 0, 200, 0, 0)
127OPTION(1, 209 /* -m */, min_interval, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 212, 0, 348, 0, 0)
128OPTION(1, 357 /* -p */, port, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 360, 0, 419, 0, 0)
129OPTION(1, 426 /* -t */, scan_interval, Separate, INVALID, INVALID, 0, 0, DefaultVis, 0, 429, 0, 509, 0, 0)
130OPTION(1, 515 /* -v */, verbose_logging, Flag, INVALID, INVALID, 0, 0, DefaultVis, 0, 518, 0, 0, 0, 0)
131#endif // OPTION
132
133#ifdef SIMPLE_ENUM_VALUE_TABLE
134
135struct SimpleEnumValue {
136 const char *Name;
137 unsigned Value;
138};
139
140struct SimpleEnumValueTable {
141 const SimpleEnumValue *Table;
142 unsigned Size;
143};
144static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
145static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
146#endif // SIMPLE_ENUM_VALUE_TABLE
147