/third_party/rust/crates/clap/tests/derive/ |
H A D | options.rs | 25 struct Opt { in required_option() structure names 30 Opt { arg: 42 }, in required_option() 31 Opt::try_parse_from(["test", "-a42"]).unwrap() in required_option() 34 Opt { arg: 42 }, in required_option() 35 Opt::try_parse_from(["test", "-a", "42"]).unwrap() in required_option() 38 Opt { arg: 42 }, in required_option() 39 Opt::try_parse_from(["test", "--arg", "42"]).unwrap() in required_option() 42 Opt { arg: 42 }, in required_option() 43 Opt::try_parse_from(["test", "--arg", "24", "--arg", "42"]).unwrap() in required_option() 45 assert!(Opt in required_option() 52 struct Opt { option_with_default() structure names 71 struct Opt { option_with_raw_default() structure names 101 struct Opt { option_from_str() structure names 127 struct Opt { vec_from_str() structure names 156 struct Opt { option_vec_from_str() structure names 172 struct Opt { option_type_is_optional() structure names 192 struct Opt { required_with_option_type() structure names 235 struct Opt { ignore_qualified_option_type() structure names 252 struct Opt { option_option_type_is_optional_value() structure names 280 struct Opt { option_option_type_help() structure names 293 struct Opt { two_option_option_types() structure names 348 struct Opt { vec_type_is_multiple_occurrences() structure names 367 struct Opt { vec_type_with_required() structure names 386 struct Opt { vec_type_with_multiple_values_only() structure names 409 struct Opt { ignore_qualified_vec_type() structure names 426 struct Opt { option_vec_type() structure names 449 struct Opt { option_vec_type_structopt_behavior() structure names 477 struct Opt { two_option_vec_types() structure names 519 struct Opt { explicit_value_parser() structure names 533 struct Opt { implicit_value_parser() structure names [all...] |
H A D | naming.rs | 8 struct Opt { in test_standalone_long_generates_kebab_case() structure names 14 Opt { FOO_OPTION: true }, in test_standalone_long_generates_kebab_case() 15 Opt::try_parse_from(["test", "--foo-option"]).unwrap() in test_standalone_long_generates_kebab_case() 22 struct Opt { in test_custom_long_overwrites_default_name() structure names 28 Opt { foo_option: true }, in test_custom_long_overwrites_default_name() 29 Opt::try_parse_from(["test", "--foo"]).unwrap() in test_custom_long_overwrites_default_name() 36 struct Opt { in test_standalone_long_uses_previous_defined_custom_name() structure names 42 Opt { foo_option: true }, in test_standalone_long_uses_previous_defined_custom_name() 43 Opt::try_parse_from(["test", "--foo"]).unwrap() in test_standalone_long_uses_previous_defined_custom_name() 50 struct Opt { in test_standalone_long_ignores_afterwards_defined_custom_name() structure names 64 struct Opt { test_standalone_long_uses_previous_defined_custom_id() structure names 78 struct Opt { test_standalone_long_ignores_afterwards_defined_custom_id() structure names 93 struct Opt { test_standalone_short_generates_kebab_case() structure names 107 struct Opt { test_custom_short_overwrites_default_name() structure names 121 struct Opt { test_standalone_short_uses_previous_defined_custom_name() structure names 135 struct Opt { test_standalone_short_ignores_afterwards_defined_custom_name() structure names 149 struct Opt { test_standalone_short_uses_previous_defined_custom_id() structure names 163 struct Opt { test_standalone_short_ignores_afterwards_defined_custom_id() structure names 177 struct Opt { test_standalone_long_uses_previous_defined_casing() structure names 191 struct Opt { test_standalone_short_uses_previous_defined_casing() structure names 206 struct Opt { test_standalone_long_works_with_verbatim_casing() structure names 220 struct Opt { test_standalone_short_works_with_verbatim_casing() structure names 235 struct Opt { test_rename_all_is_propagated_from_struct_to_fields() structure names 250 struct Opt { test_rename_all_is_not_propagated_from_struct_into_flattened() structure names 272 struct Opt { test_lower_is_renamed() structure names 286 struct Opt { test_upper_is_renamed() structure names 300 enum Opt { test_single_word_enum_variant_is_default_renamed_into_kebab_case() enum 313 enum Opt { test_multi_word_enum_variant_is_renamed() enum 327 struct Opt { test_rename_all_is_not_propagated_from_struct_into_subcommand() structure names 352 enum Opt { test_rename_all_is_propagated_from_enum_to_variants() enum 370 enum Opt { test_rename_all_is_propagated_from_enum_to_variant_fields() enum 390 enum Opt { test_rename_all_is_propagation_can_be_overridden() enum [all...] |
H A D | value_enum.rs | 21 struct Opt { in basic() structure names 27 Opt { in basic() 30 Opt::try_parse_from(["", "foo"]).unwrap() in basic() 33 Opt { in basic() 36 Opt::try_parse_from(["", "bar"]).unwrap() in basic() 38 assert!(Opt::try_parse_from(["", "fOo"]).is_err()); in basic() 56 struct Opt { in default_value() structure names 62 Opt { in default_value() 65 Opt::try_parse_from(["", "foo"]).unwrap() in default_value() 68 Opt { in default_value() 90 struct Opt { vec_for_default_values_t() structure names 141 struct Opt { vec_for_default_values_os_t() structure names 193 struct Opt { multi_word_is_renamed_kebab() structure names 222 struct Opt { variant_with_defined_casing() structure names 245 struct Opt { casing_is_propagated_from_parent() structure names 269 struct Opt { casing_propagation_is_overridden() structure names 292 struct Opt { ignore_case() structure names 319 struct Opt { ignore_case_set_to_false() structure names 342 struct Opt { alias() structure names 370 struct Opt { multiple_alias() structure names 479 struct Opt { option_type() structure names 509 struct Opt { option_option_type() structure names 543 struct Opt { vec_type() structure names 573 struct Opt { option_vec_type() structure names 604 struct Opt { vec_type_default_value() structure names [all...] |
H A D | flags.rs | 25 struct Opt { in bool_type_is_flag() structure names 30 assert_eq!(Opt { alice: false }, Opt::try_parse_from(["test"]).unwrap()); in bool_type_is_flag() 32 Opt { alice: true }, in bool_type_is_flag() 33 Opt::try_parse_from(["test", "-a"]).unwrap() in bool_type_is_flag() 36 Opt { alice: true }, in bool_type_is_flag() 37 Opt::try_parse_from(["test", "-a", "-a"]).unwrap() in bool_type_is_flag() 40 Opt { alice: true }, in bool_type_is_flag() 41 Opt::try_parse_from(["test", "--alice"]).unwrap() in bool_type_is_flag() 43 assert!(Opt in bool_type_is_flag() 58 struct Opt { non_bool_type_flag() structure names 86 struct Opt { inferred_help() structure names 107 struct Opt { inferred_version() structure names 130 struct Opt { count() structure names 164 struct Opt { mixed_type_flags() structure names 232 struct Opt { ignore_qualified_bool_type() structure names 247 struct Opt { override_implicit_action() structure names 266 struct Opt { override_implicit_from_flag_positional() structure names 285 struct Opt { unit_for_negation() structure names [all...] |
H A D | default_value.rs | 10 struct Opt { in default_value() structure names 14 assert_eq!(Opt { arg: 3 }, Opt::try_parse_from(["test"]).unwrap()); in default_value() 15 assert_eq!(Opt { arg: 1 }, Opt::try_parse_from(["test", "1"]).unwrap()); in default_value() 17 let help = utils::get_long_help::<Opt>(); in default_value() 24 struct Opt { in default_value_t() structure names 28 assert_eq!(Opt { arg: 3 }, Opt::try_parse_from(["test"]).unwrap()); in default_value_t() 29 assert_eq!(Opt { ar in default_value_t() 38 struct Opt { auto_default_value_t() structure names 52 struct Opt { default_values_t() structure names 112 struct Opt { default_value_os_t() structure names 136 struct Opt { default_values_os_t() structure names [all...] |
H A D | arguments.rs | 22 struct Opt { in required_argument() structure names 26 Opt { arg: 42 }, in required_argument() 27 Opt::try_parse_from(["test", "42"]).unwrap() in required_argument() 29 assert!(Opt::try_parse_from(["test"]).is_err()); in required_argument() 30 assert!(Opt::try_parse_from(["test", "42", "24"]).is_err()); in required_argument() 36 struct Opt { in argument_with_default() structure names 41 Opt { arg: 24 }, in argument_with_default() 42 Opt::try_parse_from(["test", "24"]).unwrap() in argument_with_default() 44 assert_eq!(Opt { arg: 42 }, Opt in argument_with_default() 51 struct Opt { auto_value_name() structure names 68 struct Opt { explicit_value_name() structure names 87 struct Opt { option_type_is_optional() structure names 101 struct Opt { vec_type_is_multiple_values() structure names [all...] |
H A D | subcommands.rs | 20 enum Opt { enum 43 Opt::Fetch { in test_fetch() 48 Opt::try_parse_from(["test", "fetch", "--all", "origin"]).unwrap() in test_fetch() 51 Opt::Fetch { in test_fetch() 56 Opt::try_parse_from(["test", "fetch", "-f", "origin"]).unwrap() in test_fetch() 63 Opt::Add { in test_add() 67 Opt::try_parse_from(["test", "add"]).unwrap() in test_add() 70 Opt::Add { in test_add() 74 Opt::try_parse_from(["test", "add", "-i", "-v"]).unwrap() in test_add() 80 let result = Opt in test_no_parse() 170 struct Opt { global_passed_down() structure names 209 struct Opt { external_subcommand() structure names 251 struct Opt { external_subcommand_os_string() structure names 275 struct Opt { external_subcommand_optional() structure names 299 pub enum Opt { enum_in_enum_subsubcommand() enum 334 enum Opt { update_subcommands() enum 381 enum Opt { update_subcommands_explicit_required() enum 407 enum Opt { update_sub_subcommands() enum 478 enum Opt { update_ext_subcommand() enum 532 struct Opt { global() structure names 549 struct Opt { skip_subcommand() structure names [all...] |
H A D | flatten.rs | 27 struct Opt { in flatten() structure names 32 Opt { in flatten() 35 Opt::try_parse_from(["test", "42"]).unwrap() in flatten() 37 assert!(Opt::try_parse_from(["test"]).is_err()); in flatten() 38 assert!(Opt::try_parse_from(["test", "42", "24"]).is_err()); in flatten() 51 struct Opt { in flatten_twice() structure names 58 Opt::try_parse_from(["test", "42", "43"]).unwrap(); in flatten_twice() 77 enum Opt { in flatten_in_subcommand() enum 89 Opt::Fetch { in flatten_in_subcommand() 93 Opt in flatten_in_subcommand() 112 struct Opt { update_args_with_flatten() structure names 148 enum Opt { global() enum 200 struct Opt { flatten_with_doc_comment() structure names 262 struct Opt { optional_flatten() structure names [all...] |
H A D | occurrences.rs | 7 struct Opt { in test_vec_of_vec() structure names 13 Opt { in test_vec_of_vec() 16 Opt::try_parse_from(&["test", "-p", "1", "2", "-p", "0", "0"]).unwrap() in test_vec_of_vec() 27 struct Opt { in test_vec_of_vec_opt_out() structure names 33 Opt { in test_vec_of_vec_opt_out() 36 Opt::try_parse_from(["test", "-p", "1,2", "-p", "a,b"]).unwrap(), in test_vec_of_vec_opt_out() 43 struct Opt { in test_vec_vec_empty() structure names 49 Opt { points: vec![] }, in test_vec_vec_empty() 50 Opt::try_parse_from(&["test"]).unwrap() in test_vec_vec_empty() 57 struct Opt { in test_option_vec_vec() structure names 73 struct Opt { test_option_vec_vec_empty() structure names [all...] |
H A D | non_literal_attributes.rs | 24 struct Opt { structure names 47 Opt { in test_slice() 53 Opt::try_parse_from(["test", "-l", "1"]).unwrap() in test_slice() 56 Opt { in test_slice() 62 Opt::try_parse_from(["test", "--level", "1"]).unwrap() in test_slice() 65 Opt { in test_slice() 71 Opt::try_parse_from(["test", "--set-level", "1"]).unwrap() in test_slice() 74 Opt { in test_slice() 80 Opt::try_parse_from(["test", "--lvl", "1"]).unwrap() in test_slice() 87 Opt { in test_multi_args() [all...] |
H A D | skip.rs | 14 struct Opt { in skip_1() structure names 21 assert!(Opt::try_parse_from(["test", "-x", "10", "20"]).is_err()); in skip_1() 23 let mut opt = Opt::try_parse_from(["test", "-x", "10"]).unwrap(); in skip_1() 26 Opt { in skip_1() 35 assert_eq!(opt, Opt { x: 22, s: 42 }); in skip_1() 41 struct Opt { in skip_2() structure names 57 Opt::try_parse_from(["test", "-x", "10", "20", "30"]).unwrap(), in skip_2() 58 Opt { in skip_2() 85 pub struct Opt { in skip_enum() structure names 95 Opt in skip_enum() 107 pub struct Opt { skip_help_doc_comments() structure names 138 pub struct Opt { skip_val() structure names [all...] |
H A D | basic.rs | 20 struct Opt { in basic() structure names 25 Opt { arg: 24 }, in basic() 26 Opt::try_parse_from(["test", "-a24"]).unwrap() in basic() 33 struct Opt { in update_basic() structure names 40 let mut opt = Opt::try_parse_from(["test", "-f0", "-s1"]).unwrap(); in update_basic() 45 Opt { in update_basic() 56 struct Opt { in update_explicit_required() structure names 63 let mut opt = Opt::try_parse_from(["test", "-f0", "-s1"]).unwrap(); in update_explicit_required() 68 Opt { in update_explicit_required() 79 struct Opt; in unit_struct() structure names [all...] |
H A D | nested_subcommands.rs | 18 struct Opt { structure names 45 let result = Opt::try_parse_from(["test"]); in test_no_cmd() 61 Opt { in test_fetch() 66 Opt::try_parse_from(["test", "-vvv", "fetch"]).unwrap() in test_fetch() 69 Opt { in test_fetch() 74 Opt::try_parse_from(["test", "--force", "fetch"]).unwrap() in test_fetch() 81 Opt { in test_add() 86 Opt::try_parse_from(["test", "add"]).unwrap() in test_add() 89 Opt { in test_add() 94 Opt in test_add() [all...] |
H A D | groups.rs | 8 struct Opt { in test_safely_nest_parser() structure names 20 Opt { in test_safely_nest_parser() 23 Opt::try_parse_from(["test", "--foo"]).unwrap() in test_safely_nest_parser() 30 struct Opt { in implicit_struct_group() structure names 55 assert_output::<Opt>("prog --add", OUTPUT, true); in implicit_struct_group() 59 assert_eq!(Opt::group_id(), Some(clap::Id::from("Opt"))); in implicit_struct_group() 66 struct Opt { in skip_group_avoids_duplicate_ids() structure names 87 Opt::command().debug_assert(); in skip_group_avoids_duplicate_ids() 92 assert_eq!(Opt in skip_group_avoids_duplicate_ids() 102 struct Opt { helpful_panic_on_duplicate_groups() structure names [all...] |
H A D | explicit_name_no_renaming.rs | 8 struct Opt { in explicit_short_long_no_rename() structure names 14 Opt { foo: "long".into() }, in explicit_short_long_no_rename() 15 Opt::try_parse_from(["test", "--.foo", "long"]).unwrap() in explicit_short_long_no_rename() 19 Opt { in explicit_short_long_no_rename() 22 Opt::try_parse_from(["test", "-.", "short"]).unwrap() in explicit_short_long_no_rename() 29 struct Opt { in explicit_name_no_rename() structure names 34 let help = utils::get_long_help::<Opt>(); in explicit_name_no_rename()
|
H A D | deny_warnings.rs | 26 struct Opt { in warning_never_struct() structure names 31 Opt { in warning_never_struct() 34 Opt::try_parse_from(["test", "foo"]).unwrap() in warning_never_struct() 41 enum Opt { in warning_never_enum() enum 48 Opt::Foo { in warning_never_enum() 51 Opt::try_parse_from(["test", "foo", "foo"]).unwrap() in warning_never_enum()
|
H A D | generic.rs | 94 struct Opt<T> in generic_w_fromstr_trait_bound() structure names 103 Opt::<isize> { answer: 42 }, in generic_w_fromstr_trait_bound() 104 Opt::<isize>::parse_from(["--answer", "42"]) in generic_w_fromstr_trait_bound() 113 struct Opt<T> { in generic_wo_trait_bound() structure names 120 Opt::<Duration> { in generic_wo_trait_bound() 124 Opt::<Duration>::parse_from(["--answer", "42"]) in generic_wo_trait_bound() 133 struct Opt<T> in generic_where_clause_w_trailing_comma() structure names 142 Opt::<isize> { answer: 42 }, in generic_where_clause_w_trailing_comma() 143 Opt::<isize>::parse_from(["--answer", "42"]) in generic_where_clause_w_trailing_comma()
|
H A D | author_version_about.rs | 24 struct Opt {} in no_author_version_about() structure names 26 let output = utils::get_long_help::<Opt>(); in no_author_version_about() 35 struct Opt {} in use_env() structure names 37 let output = utils::get_long_help::<Opt>(); in use_env() 50 pub struct Opt {} in explicit_version_not_str_lit() structure names 52 let output = utils::get_long_help::<Opt>(); in explicit_version_not_str_lit()
|
H A D | raw_idents.rs | 6 struct Opt { in raw_idents() structure names 12 Opt { in raw_idents() 15 Opt::try_parse_from(["test", "--type", "long"]).unwrap() in raw_idents() 19 Opt { in raw_idents() 22 Opt::try_parse_from(["test", "-t", "short"]).unwrap() in raw_idents()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
H A D | FuzzerCLI.cpp | 47 for (StringRef Opt : Opts) { in handleExecNameEncodedBEOpts() 48 if (Opt.equals("gisel")) { in handleExecNameEncodedBEOpts() 52 } else if (Opt.startswith("O")) { in handleExecNameEncodedBEOpts() 53 Args.push_back("-" + Opt.str()); in handleExecNameEncodedBEOpts() 54 } else if (Triple(Opt).getArch()) { in handleExecNameEncodedBEOpts() 55 Args.push_back("-mtriple=" + Opt.str()); in handleExecNameEncodedBEOpts() 57 errs() << ExecName << ": Unknown option: " << Opt << ".\n"; in handleExecNameEncodedBEOpts() local 84 for (StringRef Opt : Opts) { in handleExecNameEncodedOptimizerOpts() 85 if (Opt == "instcombine") { in handleExecNameEncodedOptimizerOpts() 87 } else if (Opt in handleExecNameEncodedOptimizerOpts() 120 errs() << ExecName << ": Unknown option: " << Opt << ".\\n"; handleExecNameEncodedOptimizerOpts() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | tsxSpreadAttributesResolution9.js | 9 class Opt extends React.Component<OptionProp, {}> { 21 let p = <Opt />; 22 let y = <Opt {...obj} />; 23 let y1 = <Opt {...obj1} />; 24 let y2 = <Opt {...obj1} y/>; 25 let y3 = <Opt x={2} />;
46 var Opt = /** @class */ (function (_super) {
47 __extends(Opt, _super);
48 function Opt() {
51 Opt [all...] |
H A D | tsxSpreadAttributesResolution10.js | 8 class Opt extends React.Component<OptionProp, {}> { 20 let y = <Opt {...obj} x={3}/>; 21 let y1 = <Opt {...obj1} x="Hi"/>; 22 let y2 = <Opt {...obj1} x={3}/>; 23 let y3 = <Opt x />; 45 var Opt = /** @class */ (function (_super) {
46 __extends(Opt, _super);
47 function Opt() {
50 Opt.prototype.render = function () {
53 return Opt;
[all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Option/ |
H A D | ArgList.cpp | 242 Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const { in MakeFlagArg() 244 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeFlagArg() 245 BaseArgs.MakeIndex(Opt.getName()), BaseArg)); in MakeFlagArg() 249 Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt, in MakePositionalArg() argument 253 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakePositionalArg() 258 Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt, in MakeSeparateArg() argument 267 MakeJoinedArg(const Arg *BaseArg, const Option Opt, StringRef Value) const MakeJoinedArg() argument [all...] |
H A D | Arg.cpp | 21 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const Arg *BaseArg) in Arg() argument 22 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 25 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument 27 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 32 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument 34 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 50 O << " Opt in print() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Option/ |
H A D | OptSpecifier.h | 25 /*implicit*/ OptSpecifier(const Option *Opt); 31 bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); } in operator ==() 32 bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); } in operator !=()
|