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 "/###\0"
26 "/?\0"
27 "Display this help and exit.\0"
28 "/C\0"
29 "Set the codepage used for input strings.\0"
30 "/dry-run\0"
31 "Don't compile the input; only try to parse it.\0"
32 "/D\0"
33 "Define a symbol for the C preprocessor.\0"
34 "/FM\0"
35 "/FO\0"
36 "Change the output file location.\0"
37 "/G1\0"
38 "/G2\0"
39 "/GN\0"
40 "/G\0"
41 "/H\0"
42 "/I\0"
43 "Add an include path.\0"
44 "/LN\0"
45 "Set the default language name.\0"
46 "/L\0"
47 "Set the default language identifier.\0"
48 "/no-preprocess\0"
49 "Don't try to preprocess the input file.\0"
50 "/NOLOGO\0"
51 "/N\0"
52 "Null-terminate all strings in the string table.\0"
53 "/Q\0"
54 "/R\0"
55 "/showIncludes\0"
56 "Print cl.exe-style include information to stderr.\0"
57 "/SL\0"
58 "/U\0"
59 "Undefine a symbol for the C preprocessor.\0"
60 "/V\0"
61 "Be verbose.\0"
62 "/W\0"
63 "/X\0"
64 "Ignore 'include' variable.\0"
65 "/Y\0"
66 "Suppress warnings on duplicate resource IDs.\0"
67 ;
68#ifdef __GNUC__
69#pragma GCC diagnostic pop
70#endif
71
72static constexpr llvm::StringTable
73OptionStrTable = OptionStrTableStorage;
74
75 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
76 0 /* prefixes */,
77 2 /* prefixes */, 1 /* '/' */, 3 /* '-' */
78 };
79
80 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
81 {0, 0},
82 };
83
84 static constexpr unsigned OptionSubCommandIDsTable[] = {
85 0 /* subcommands */
86 };
87
88 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
89 {0, 0, 0, 0, 0, 0, 0, 0},
90 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
91 };
92
93 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
94 {5 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
95 {13 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
96 {23 /* /### */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
97 {28 /* /? */, 31, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
98 {59 /* /C */, 62, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
99 {103 /* /dry-run */, 112, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
100 {159 /* /D */, 162, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
101 {202 /* /FM */, 0, 0, 0, 1, 1, llvm::opt::Option::SeparateClass},
102 {206 /* /FO */, 210, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
103 {243 /* /G1 */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
104 {247 /* /G2 */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
105 {251 /* /GN */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
106 {255 /* /G */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
107 {258 /* /H */, 31, 0, 4, 1, 1, llvm::opt::Option::FlagClass},
108 {261 /* /I */, 264, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
109 {285 /* /LN */, 289, 0, 0, 1, 1, llvm::opt::Option::SeparateClass},
110 {320 /* /L */, 323, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
111 {360 /* /no-preprocess */, 375, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
112 {415 /* /NOLOGO */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
113 {423 /* /N */, 426, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
114 {474 /* /Q */, 0, 0, 0, 1, 1, llvm::opt::Option::SeparateClass},
115 {477 /* /R */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
116 {480 /* /showIncludes */, 494, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
117 {544 /* /SL */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
118 {548 /* /U */, 551, 0, 0, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
119 {593 /* /V */, 596, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
120 {608 /* /W */, 0, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
121 {611 /* /X */, 614, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
122 {641 /* /Y */, 644, 0, 0, 1, 1, llvm::opt::Option::FlagClass},
123 };
124
125 return {OptionStrTable, OptionPrefixesTable,
126 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
127}
128#undef OPTTABLE_CODE
129#endif // OPTTABLE_CODE
130
131/////////
132// ValuesCode
133
134#ifdef OPTTABLE_VALUES_CODE
135static llvm::StringRef getOptionValuesCode(unsigned ID) {
136 switch (ID) {
137 }
138 return {};
139}
140#undef OPTTABLE_VALUES_CODE
141#endif // OPTTABLE_VALUES_CODE
142/////////
143// Groups
144
145#ifdef OPTION
146
147//////////
148// Options
149
150OPTION(0, 5 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
151OPTION(0, 13 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
152OPTION(1, 23 /* /### */, _HASH_HASH_HASH, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
153OPTION(1, 28 /* /? */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 31, 0, 0, 0, 0)
154OPTION(1, 59 /* /C */, codepage, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 62, 0, 0, 0, 0)
155OPTION(1, 103 /* /dry-run */, dry_run, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 112, 0, 0, 0, 0)
156OPTION(1, 159 /* /D */, define, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 162, 0, 0, 0, 0)
157OPTION(1, 202 /* /FM */, fm, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
158OPTION(1, 206 /* /FO */, fileout, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 210, 0, 0, 0, 0)
159OPTION(1, 243 /* /G1 */, g1, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
160OPTION(1, 247 /* /G2 */, g2, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
161OPTION(1, 251 /* /GN */, gn, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
162OPTION(1, 255 /* /G */, g, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
163OPTION(1, 258 /* /H */, h, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 31, 0, 0, 0, 0)
164OPTION(1, 261 /* /I */, includepath, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 264, 0, 0, 0, 0)
165OPTION(1, 285 /* /LN */, lang_name, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 289, 0, 0, 0, 0)
166OPTION(1, 320 /* /L */, lang_id, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 323, 0, 0, 0, 0)
167OPTION(1, 360 /* /no-preprocess */, no_preprocess, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 375, 0, 0, 0, 0)
168OPTION(1, 415 /* /NOLOGO */, nologo, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
169OPTION(1, 423 /* /N */, add_null, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 426, 0, 0, 0, 0)
170OPTION(1, 474 /* /Q */, q, Separate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
171OPTION(1, 477 /* /R */, r, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
172OPTION(1, 480 /* /showIncludes */, show_includes, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 494, 0, 0, 0, 0)
173OPTION(1, 544 /* /SL */, sl, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
174OPTION(1, 548 /* /U */, undef, JoinedOrSeparate, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 551, 0, 0, 0, 0)
175OPTION(1, 593 /* /V */, verbose, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 596, 0, 0, 0, 0)
176OPTION(1, 608 /* /W */, w, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
177OPTION(1, 611 /* /X */, noinclude, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 614, 0, 0, 0, 0)
178OPTION(1, 641 /* /Y */, dupid_nowarn, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 644, 0, 0, 0, 0)
179#endif // OPTION
180
181#ifdef SIMPLE_ENUM_VALUE_TABLE
182
183struct SimpleEnumValue {
184 const char *Name;
185 unsigned Value;
186};
187
188struct SimpleEnumValueTable {
189 const SimpleEnumValue *Table;
190 unsigned Size;
191};
192static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
193static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
194#endif // SIMPLE_ENUM_VALUE_TABLE
195