/third_party/rust/crates/clap/tests/derive/ |
D | options.rs | 25 struct Opt { in required_option() struct 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::try_parse_from(["test"]).is_err()); in required_option() [all …]
|
D | naming.rs | 8 struct Opt { in test_standalone_long_generates_kebab_case() struct 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() struct 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() struct 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() struct [all …]
|
D | flags.rs | 25 struct Opt { in bool_type_is_flag() struct 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::try_parse_from(["test", "-i"]).is_err()); in bool_type_is_flag() 44 assert!(Opt::try_parse_from(["test", "-a", "foo"]).is_err()); in bool_type_is_flag() [all …]
|
D | value_enum.rs | 21 struct Opt { in basic() struct 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() struct 62 Opt { in default_value() 65 Opt::try_parse_from(["", "foo"]).unwrap() in default_value() 68 Opt { in default_value() [all …]
|
D | arguments.rs | 22 struct Opt { in required_argument() struct 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() struct 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::try_parse_from(["test"]).unwrap()); in argument_with_default() 45 assert!(Opt::try_parse_from(["test", "42", "24"]).is_err()); in argument_with_default() [all …]
|
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::try_parse_from(["test", "badcmd", "-i", "-v"]); in test_no_parse() [all …]
|
D | default_value.rs | 10 struct Opt { in default_value() struct 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() struct 28 assert_eq!(Opt { arg: 3 }, Opt::try_parse_from(["test"]).unwrap()); in default_value_t() 29 assert_eq!(Opt { arg: 1 }, Opt::try_parse_from(["test", "1"]).unwrap()); in default_value_t() 31 let help = utils::get_long_help::<Opt>(); in default_value_t() 38 struct Opt { in auto_default_value_t() struct 42 assert_eq!(Opt { arg: 0 }, Opt::try_parse_from(["test"]).unwrap()); in auto_default_value_t() [all …]
|
D | flatten.rs | 27 struct Opt { in flatten() struct 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() struct 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::try_parse_from(["test", "fetch", "42"]).unwrap() in flatten_in_subcommand() [all …]
|
D | skip.rs | 14 struct Opt { in skip_1() struct 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() struct 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() struct 95 Opt::try_parse_from(["test", "-n", "10"]).unwrap(), in skip_enum() [all …]
|
D | occurrences.rs | 7 struct Opt { in test_vec_of_vec() struct 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() struct 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() struct 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() struct [all …]
|
D | non_literal_attributes.rs | 24 struct Opt { struct 47 Opt { in test_slice() argument 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 …]
|
D | basic.rs | 20 struct Opt { in basic() struct 25 Opt { arg: 24 }, in basic() 26 Opt::try_parse_from(["test", "-a24"]).unwrap() in basic() 33 struct Opt { in update_basic() struct 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() struct 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() struct [all …]
|
D | nested_subcommands.rs | 18 struct Opt { struct 45 let result = Opt::try_parse_from(["test"]); in test_no_cmd() argument 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::try_parse_from(["test", "-vv", "add"]).unwrap() in test_add() [all …]
|
D | groups.rs | 8 struct Opt { in test_safely_nest_parser() struct 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() struct 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() struct 87 Opt::command().debug_assert(); in skip_group_avoids_duplicate_ids() 92 assert_eq!(Opt::group_id(), None); in skip_group_avoids_duplicate_ids() 102 struct Opt { in helpful_panic_on_duplicate_groups() struct [all …]
|
D | explicit_name_no_renaming.rs | 8 struct Opt { in explicit_short_long_no_rename() struct 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() struct 34 let help = utils::get_long_help::<Opt>(); in explicit_name_no_rename()
|
/third_party/typescript/tests/baselines/reference/ |
D | tsxSpreadAttributesResolution9.types | 13 class Opt extends React.Component<OptionProp, {}> { 14 >Opt : Opt 43 let p = <Opt />; 45 ><Opt /> : JSX.Element 46 >Opt : typeof Opt 48 let y = <Opt {...obj} />; 50 ><Opt {...obj} /> : JSX.Element 51 >Opt : typeof Opt 54 let y1 = <Opt {...obj1} />; 56 ><Opt {...obj1} /> : JSX.Element [all …]
|
D | tsxSpreadAttributesResolution10.types | 10 class Opt extends React.Component<OptionProp, {}> { 11 >Opt : Opt 40 let y = <Opt {...obj} x={3}/>; 42 ><Opt {...obj} x={3}/> : JSX.Element 43 >Opt : typeof Opt 48 let y1 = <Opt {...obj1} x="Hi"/>; 50 ><Opt {...obj1} x="Hi"/> : JSX.Element 51 >Opt : typeof Opt 55 let y2 = <Opt {...obj1} x={3}/>; 57 ><Opt {...obj1} x={3}/> : JSX.Element [all …]
|
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) { class 47 __extends(Opt, _super); 48 function Opt() { class in Opt 51 Opt.prototype.render = function () { [all …]
|
D | tsxSpreadAttributesResolution9.symbols | 15 class Opt extends React.Component<OptionProp, {}> { 16 >Opt : Symbol(Opt, Decl(file.tsx, 5, 1)) 23 >render : Symbol(Opt.render, Decl(file.tsx, 7, 51)) 44 let p = <Opt />; 46 >Opt : Symbol(Opt, Decl(file.tsx, 5, 1)) 48 let y = <Opt {...obj} />; 50 >Opt : Symbol(Opt, Decl(file.tsx, 5, 1)) 53 let y1 = <Opt {...obj1} />; 55 >Opt : Symbol(Opt, Decl(file.tsx, 5, 1)) 58 let y2 = <Opt {...obj1} y/>; [all …]
|
D | tsxFindAllReferences5.baseline.jsonc | 13 // /*FIND ALL REFS*/declare function [|Opt|](attributes: OptionPropBag): JSX.Element; 14 // let opt = <[|Opt|] />; 15 // let opt1 = <[|Opt|] propx={100} propString />; 16 // let opt2 = <[|Opt|] propx={100} optional/>; 17 // let opt3 = <[|Opt|] wrong />; 18 // let opt4 = <[|Opt|] propx={100} propString="hi" />; 27 "name": "function Opt(attributes: OptionPropBag): JSX.Element", 42 "text": "Opt", 190 // declare function /*FIND ALL REFS*/[|Opt|](attributes: OptionPropBag): JSX.Element; 191 // let opt = <[|Opt|] />; [all …]
|
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) { class 46 __extends(Opt, _super); 47 function Opt() { class in Opt 50 Opt.prototype.render = function () { 53 return Opt; [all …]
|
D | tsxSpreadAttributesResolution10.symbols | 12 class Opt extends React.Component<OptionProp, {}> { 13 >Opt : Symbol(Opt, Decl(file.tsx, 4, 1)) 20 >render : Symbol(Opt.render, Decl(file.tsx, 6, 51)) 41 let y = <Opt {...obj} x={3}/>; 43 >Opt : Symbol(Opt, Decl(file.tsx, 4, 1)) 47 let y1 = <Opt {...obj1} x="Hi"/>; 49 >Opt : Symbol(Opt, Decl(file.tsx, 4, 1)) 53 let y2 = <Opt {...obj1} x={3}/>; 55 >Opt : Symbol(Opt, Decl(file.tsx, 4, 1)) 59 let y3 = <Opt x />; [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | FuzzerCLI.cpp | 47 for (StringRef Opt : Opts) { in handleExecNameEncodedBEOpts() local 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() 84 for (StringRef Opt : Opts) { in handleExecNameEncodedOptimizerOpts() local 85 if (Opt == "instcombine") { in handleExecNameEncodedOptimizerOpts() 87 } else if (Opt == "earlycse") { in handleExecNameEncodedOptimizerOpts() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Option/ |
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 260 unsigned Index = BaseArgs.MakeIndex(Opt.getName(), Value); in MakeSeparateArg() 262 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeSeparateArg() 267 Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt, in MakeJoinedArg() argument 269 unsigned Index = BaseArgs.MakeIndex((Opt.getName() + Value).str()); in MakeJoinedArg() [all …]
|
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() 51 Opt.print(O); in print()
|