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