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 "--all\0"
26 "Silently ignored. Present for GNU strings compatibility\0"
27 "-a\0"
28 "Alias for --all\0"
29 "--bytes=\0"
30 "Print sequences of the specified length\0"
31 "--bytes\0"
32 "--encoding=\0"
33 "Select the character encoding of the strings to find: s (ASCII), S (default), utf8 (UTF-8)\0"
34 "--encoding\0"
35 "-e\0"
36 "Alias for --encoding\0"
37 "-f\0"
38 "Alias for --print-file-name\0"
39 "--help\0"
40 "Display this help\0"
41 "-h\0"
42 "Alias for --help\0"
43 "-n\0"
44 "Alias for --bytes\0"
45 "--print-file-name\0"
46 "Print the name of the file before each string\0"
47 "--radix=\0"
48 "Print the offset within the file with the specified radix: o (octal), d (decimal), x (hexadecimal)\0"
49 "<radix>\0"
50 "--radix\0"
51 "-t\0"
52 "Alias for --radix\0"
53 "--version\0"
54 "Display the version\0"
55 ;
56#ifdef __GNUC__
57#pragma GCC diagnostic pop
58#endif
59
60static constexpr llvm::StringTable
61OptionStrTable = OptionStrTableStorage;
62
63 static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = {
64 0 /* prefixes */,
65 1 /* prefixes */, 1 /* '-' */,
66 1 /* prefixes */, 3 /* '--' */
67 };
68
69 static constexpr llvm::opt::OptTable::HelpTextVariant OptionHelpTextVariantsTable[] = {
70 {0, 0},
71 };
72
73 static constexpr unsigned OptionSubCommandIDsTable[] = {
74 0 /* subcommands */
75 };
76
77 static constexpr llvm::opt::OptTable::InfoExtra OptionInfoExtrasTable[] = {
78 {0, 0, 0, 0, 0, 0, 0, 0},
79 {0, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
80 {569, 0, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0},
81 };
82
83 static constexpr llvm::opt::OptTable::Info OptionInfoTable[] = {
84 {6 /* <input> */, 0, 0, 0, 1, 0, llvm::opt::Option::InputClass},
85 {14 /* <unknown> */, 0, 0, 0, 1, 0, llvm::opt::Option::UnknownClass},
86 {24 /* --all */, 30, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
87 {86 /* -a */, 89, 0, 3, 1, 1, llvm::opt::Option::FlagClass},
88 {105 /* --bytes= */, 114, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
89 {154 /* --bytes */, 0, 0, 5, 1, 3, llvm::opt::Option::SeparateClass},
90 {162 /* --encoding= */, 174, 0, 0, 1, 3, llvm::opt::Option::JoinedClass},
91 {265 /* --encoding */, 0, 0, 7, 1, 3, llvm::opt::Option::SeparateClass},
92 {276 /* -e */, 279, 0, 7, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
93 {300 /* -f */, 303, 0, 14, 1, 1, llvm::opt::Option::FlagClass},
94 {331 /* --help */, 338, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
95 {356 /* -h */, 359, 0, 11, 1, 1, llvm::opt::Option::FlagClass},
96 {376 /* -n */, 379, 0, 5, 1, 1, llvm::opt::Option::JoinedOrSeparateClass},
97 {397 /* --print-file-name */, 415, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
98 {461 /* --radix= */, 470, 0, 0, 2, 3, llvm::opt::Option::JoinedClass},
99 {577 /* --radix */, 0, 0, 15, 2, 3, llvm::opt::Option::SeparateClass},
100 {585 /* -t */, 588, 0, 15, 2, 1, llvm::opt::Option::JoinedOrSeparateClass},
101 {606 /* --version */, 616, 0, 0, 1, 3, llvm::opt::Option::FlagClass},
102 };
103
104 return {OptionStrTable, OptionPrefixesTable,
105 OptionInfoTable, OptionInfoExtrasTable, OptionHelpTextVariantsTable, {}, OptionSubCommandIDsTable};
106}
107#undef OPTTABLE_CODE
108#endif // OPTTABLE_CODE
109
110/////////
111// ValuesCode
112
113#ifdef OPTTABLE_VALUES_CODE
114static llvm::StringRef getOptionValuesCode(unsigned ID) {
115 switch (ID) {
116 }
117 return {};
118}
119#undef OPTTABLE_VALUES_CODE
120#endif // OPTTABLE_VALUES_CODE
121/////////
122// Groups
123
124#ifdef OPTION
125
126//////////
127// Options
128
129OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
130OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
131OPTION(3, 24 /* --all */, all, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 30, 0, 0, 0, 0)
132OPTION(1, 86 /* -a */, anonymous_3, Flag, INVALID, all, 0, 0, static_cast<unsigned>(DefaultVis), 0, 89, 0, 0, 0, 0)
133OPTION(3, 105 /* --bytes= */, bytes_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 114, 0, 0, 0, 0)
134OPTION(3, 154 /* --bytes */, anonymous_0, Separate, INVALID, bytes_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
135OPTION(3, 162 /* --encoding= */, encoding_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 174, 0, 0, 0, 0)
136OPTION(3, 265 /* --encoding */, anonymous_1, Separate, INVALID, encoding_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 0, 0, 0)
137OPTION(1, 276 /* -e */, anonymous_7, JoinedOrSeparate, INVALID, encoding_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 279, 0, 0, 0, 0)
138OPTION(1, 300 /* -f */, anonymous_4, Flag, INVALID, print_file_name, 0, 0, static_cast<unsigned>(DefaultVis), 0, 303, 0, 0, 0, 0)
139OPTION(3, 331 /* --help */, help, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 338, 0, 0, 0, 0)
140OPTION(1, 356 /* -h */, anonymous_5, Flag, INVALID, help, 0, 0, static_cast<unsigned>(DefaultVis), 0, 359, 0, 0, 0, 0)
141OPTION(1, 376 /* -n */, anonymous_6, JoinedOrSeparate, INVALID, bytes_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 379, 0, 0, 0, 0)
142OPTION(3, 397 /* --print-file-name */, print_file_name, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 415, 0, 0, 0, 0)
143OPTION(3, 461 /* --radix= */, radix_EQ, Joined, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 470, 0, 569, 0, 0)
144OPTION(3, 577 /* --radix */, anonymous_2, Separate, INVALID, radix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 0, 0, 569, 0, 0)
145OPTION(1, 585 /* -t */, anonymous_8, JoinedOrSeparate, INVALID, radix_EQ, 0, 0, static_cast<unsigned>(DefaultVis), 0, 588, 0, 569, 0, 0)
146OPTION(3, 606 /* --version */, version, Flag, INVALID, INVALID, 0, 0, static_cast<unsigned>(DefaultVis), 0, 616, 0, 0, 0, 0)
147#endif // OPTION
148
149#ifdef SIMPLE_ENUM_VALUE_TABLE
150
151struct SimpleEnumValue {
152 const char *Name;
153 unsigned Value;
154};
155
156struct SimpleEnumValueTable {
157 const SimpleEnumValue *Table;
158 unsigned Size;
159};
160static const SimpleEnumValueTable SimpleEnumValueTables[] = {};
161static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables);
162#endif // SIMPLE_ENUM_VALUE_TABLE
163