| 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 | #ifdef OPTTABLE_STR_TABLE_CODE |
| 13 | |
| 14 | #ifdef __GNUC__ |
| 15 | #pragma GCC diagnostic push |
| 16 | #pragma GCC diagnostic ignored "-Woverlength-strings" |
| 17 | #endif |
| 18 | static constexpr char OptionStrTableStorage[] = |
| 19 | "\0" |
| 20 | "-\0" |
| 21 | "--\0" |
| 22 | "<input>\0" |
| 23 | "<unknown>\0" |
| 24 | "--all\0" |
| 25 | "-a\0" |
| 26 | "--bytes=\0" |
| 27 | "--bytes\0" |
| 28 | "-f\0" |
| 29 | "--help\0" |
| 30 | "-h\0" |
| 31 | "-n\0" |
| 32 | "--print-file-name\0" |
| 33 | "--radix=\0" |
| 34 | "--radix\0" |
| 35 | "-t\0" |
| 36 | "--version\0" |
| 37 | ; |
| 38 | #ifdef __GNUC__ |
| 39 | #pragma GCC diagnostic pop |
| 40 | #endif |
| 41 | |
| 42 | static constexpr llvm::StringTable OptionStrTable = |
| 43 | OptionStrTableStorage; |
| 44 | #endif // OPTTABLE_STR_TABLE_CODE |
| 45 | |
| 46 | ///////// |
| 47 | // Prefixes |
| 48 | |
| 49 | #ifdef OPTTABLE_PREFIXES_TABLE_CODE |
| 50 | static constexpr llvm::StringTable::Offset OptionPrefixesTable[] = { |
| 51 | 0 /* prefixes */, |
| 52 | 1 /* prefixes */, 1 /* '-' */, |
| 53 | 1 /* prefixes */, 3 /* '--' */ |
| 54 | }; |
| 55 | #endif // OPTTABLE_PREFIXES_TABLE_CODE |
| 56 | |
| 57 | ///////// |
| 58 | // Prefix Union |
| 59 | |
| 60 | #ifdef OPTTABLE_PREFIXES_UNION_CODE |
| 61 | static constexpr llvm::StringTable::Offset OptionPrefixesUnion[] = { |
| 62 | 1 /* '-' */, 3 /* '--' */ |
| 63 | }; |
| 64 | #endif // OPTTABLE_PREFIXES_UNION_CODE |
| 65 | |
| 66 | ///////// |
| 67 | // ValuesCode |
| 68 | |
| 69 | #ifdef OPTTABLE_VALUES_CODE |
| 70 | #endif |
| 71 | ///////// |
| 72 | // Groups |
| 73 | |
| 74 | #ifdef OPTION |
| 75 | |
| 76 | ////////// |
| 77 | // Options |
| 78 | |
| 79 | OPTION(0, 6 /* <input> */, INPUT, Input, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 80 | OPTION(0, 14 /* <unknown> */, UNKNOWN, Unknown, INVALID, INVALID, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 81 | OPTION(3, 24 /* --all */, all, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 82 | "Silently ignored. Present for GNU strings compatibility" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 83 | OPTION(1, 30 /* -a */, anonymous_2, Flag, INVALID, all, nullptr, 0, DefaultVis, 0, |
| 84 | "Alias for --all" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 85 | OPTION(3, 33 /* --bytes= */, bytes_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 86 | "Print sequences of the specified length" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 87 | OPTION(3, 42 /* --bytes */, anonymous_0, Separate, INVALID, bytes_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 88 | OPTION(1, 50 /* -f */, anonymous_3, Flag, INVALID, print_file_name, nullptr, 0, DefaultVis, 0, |
| 89 | "Alias for --print-file-name" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 90 | OPTION(3, 53 /* --help */, help, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 91 | "Display this help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 92 | OPTION(1, 60 /* -h */, anonymous_4, Flag, INVALID, help, nullptr, 0, DefaultVis, 0, |
| 93 | "Alias for --help" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 94 | OPTION(1, 63 /* -n */, anonymous_5, JoinedOrSeparate, INVALID, bytes_EQ, nullptr, 0, DefaultVis, 0, |
| 95 | "Alias for --bytes" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 96 | OPTION(3, 66 /* --print-file-name */, print_file_name, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 97 | "Print the name of the file before each string" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 98 | OPTION(3, 84 /* --radix= */, radix_EQ, Joined, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 99 | "Print the offset within the file with the specified radix: o (octal), d (decimal), x (hexadecimal)" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<radix>" , nullptr) |
| 100 | OPTION(3, 93 /* --radix */, anonymous_1, Separate, INVALID, radix_EQ, nullptr, 0, DefaultVis, 0, nullptr, (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<radix>" , nullptr) |
| 101 | OPTION(1, 101 /* -t */, anonymous_6, JoinedOrSeparate, INVALID, radix_EQ, nullptr, 0, DefaultVis, 0, |
| 102 | "Alias for --radix" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), "<radix>" , nullptr) |
| 103 | OPTION(3, 104 /* --version */, version, Flag, INVALID, INVALID, nullptr, 0, DefaultVis, 0, |
| 104 | "Display the version" , (std::array<std::pair<std::array<unsigned, 2>, const char*>, 1>{{ {std::array<unsigned, 2>{{0, 0}}, nullptr} }}), nullptr, nullptr) |
| 105 | #endif // OPTION |
| 106 | |
| 107 | #ifdef SIMPLE_ENUM_VALUE_TABLE |
| 108 | |
| 109 | struct SimpleEnumValue { |
| 110 | const char *Name; |
| 111 | unsigned Value; |
| 112 | }; |
| 113 | |
| 114 | struct SimpleEnumValueTable { |
| 115 | const SimpleEnumValue *Table; |
| 116 | unsigned Size; |
| 117 | }; |
| 118 | static const SimpleEnumValueTable SimpleEnumValueTables[] = {}; |
| 119 | static const unsigned SimpleEnumValueTablesSize = std::size(SimpleEnumValueTables); |
| 120 | #endif // SIMPLE_ENUM_VALUE_TABLE |
| 121 | |
| 122 | |
| 123 | |