Home
last modified time | relevance | path

Searched refs:Opt (Results 1 – 25 of 96) sorted by relevance

1234

/external/clang/lib/Basic/
DWarnings.cpp37 StringRef Opt) { in EmitUnknownDiagWarning() argument
38 StringRef Suggestion = DiagnosticIDs::getNearestOption(Flavor, Opt); in EmitUnknownDiagWarning()
40 << (Flavor == diag::Flavor::WarningOrError ? 0 : 1) << (Prefix.str() += Opt) in EmitUnknownDiagWarning()
90 StringRef Opt = Opts.Warnings[i]; in ProcessWarningOptions() local
94 if (Opt == "format=0") in ProcessWarningOptions()
95 Opt = "no-format"; in ProcessWarningOptions()
100 if (Opt.startswith("no-")) { in ProcessWarningOptions()
102 Opt = Opt.substr(3); in ProcessWarningOptions()
112 if (Opt == "system-headers") { in ProcessWarningOptions()
120 if (Opt == "everything") { in ProcessWarningOptions()
[all …]
/external/catch2/include/internal/
Dcatch_commandline.cpp127 | Opt( config.listTests ) in makeCommandLineParser()
130 | Opt( config.listTags ) in makeCommandLineParser()
133 | Opt( config.showSuccessfulTests ) in makeCommandLineParser()
136 | Opt( config.shouldDebugBreak ) in makeCommandLineParser()
139 | Opt( config.noThrow ) in makeCommandLineParser()
142 | Opt( config.showInvisibles ) in makeCommandLineParser()
145 | Opt( config.outputFilename, "filename" ) in makeCommandLineParser()
148 | Opt( setReporter, "name" ) in makeCommandLineParser()
151 | Opt( config.name, "name" ) in makeCommandLineParser()
154 | Opt( [&]( bool ){ config.abortAfter = 1; } ) in makeCommandLineParser()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp48 for (StringRef Opt : Opts) { in handleExecNameEncodedBEOpts() local
49 if (Opt.equals("gisel")) { in handleExecNameEncodedBEOpts()
53 } else if (Opt.startswith("O")) { in handleExecNameEncodedBEOpts()
54 Args.push_back("-" + Opt.str()); in handleExecNameEncodedBEOpts()
55 } else if (Triple(Opt).getArch()) { in handleExecNameEncodedBEOpts()
56 Args.push_back("-mtriple=" + Opt.str()); in handleExecNameEncodedBEOpts()
58 errs() << ExecName << ": Unknown option: " << Opt << ".\n"; in handleExecNameEncodedBEOpts()
85 for (StringRef Opt : Opts) { in handleExecNameEncodedOptimizerOpts() local
86 if (Opt == "instcombine") { in handleExecNameEncodedOptimizerOpts()
88 } else if (Opt == "earlycse") { in handleExecNameEncodedOptimizerOpts()
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Ddefault.pass.cpp24 template <class Opt>
28 static_assert(std::is_nothrow_default_constructible<Opt>::value, ""); in test_constexpr()
29 static_assert(std::is_trivially_destructible<Opt>::value, ""); in test_constexpr()
30 static_assert(std::is_trivially_destructible<typename Opt::value_type>::value, ""); in test_constexpr()
32 constexpr Opt opt; in test_constexpr()
36 : public Opt in test_constexpr()
42 template <class Opt>
46 static_assert(std::is_nothrow_default_constructible<Opt>::value, ""); in test()
47 static_assert(!std::is_trivially_destructible<Opt>::value, ""); in test()
48 static_assert(!std::is_trivially_destructible<typename Opt::value_type>::value, ""); in test()
[all …]
Dnullopt_t.pass.cpp25 template <class Opt>
29 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, ""); in test_constexpr()
30 static_assert(std::is_trivially_destructible<Opt>::value, ""); in test_constexpr()
31 static_assert(std::is_trivially_destructible<typename Opt::value_type>::value, ""); in test_constexpr()
33 constexpr Opt opt(nullopt); in test_constexpr()
37 : public Opt in test_constexpr()
43 template <class Opt>
47 static_assert(std::is_nothrow_constructible<Opt, nullopt_t&>::value, ""); in test()
48 static_assert(!std::is_trivially_destructible<Opt>::value, ""); in test()
49 static_assert(!std::is_trivially_destructible<typename Opt::value_type>::value, ""); in test()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Option/
DArgList.cpp258 Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const { in MakeFlagArg()
260 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeFlagArg()
261 BaseArgs.MakeIndex(Opt.getName()), BaseArg)); in MakeFlagArg()
265 Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt, in MakePositionalArg() argument
269 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakePositionalArg()
274 Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt, in MakeSeparateArg() argument
276 unsigned Index = BaseArgs.MakeIndex(Opt.getName(), Value); in MakeSeparateArg()
278 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeSeparateArg()
283 Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt, in MakeJoinedArg() argument
285 unsigned Index = BaseArgs.MakeIndex((Opt.getName() + Value).str()); in MakeJoinedArg()
[all …]
DArg.cpp22 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const Arg *BaseArg) in Arg() argument
23 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg()
26 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument
28 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg()
33 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument
35 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg()
52 Opt.print(O); in print()
/external/llvm/lib/Option/
DArg.cpp21 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()
DArgList.cpp391 Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const { in MakeFlagArg()
393 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeFlagArg()
394 BaseArgs.MakeIndex(Opt.getName()), BaseArg)); in MakeFlagArg()
398 Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt, in MakePositionalArg() argument
402 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakePositionalArg()
407 Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt, in MakeSeparateArg() argument
409 unsigned Index = BaseArgs.MakeIndex(Opt.getName(), Value); in MakeSeparateArg()
411 make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakeSeparateArg()
416 Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt, in MakeJoinedArg() argument
418 unsigned Index = BaseArgs.MakeIndex((Opt.getName() + Value).str()); in MakeJoinedArg()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Option/
DOptSpecifier.h26 /*implicit*/ OptSpecifier(const Option *Opt);
32 bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); }
33 bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); }
DArg.h38 const Option Opt;
63 Arg(const Option Opt, StringRef Spelling, unsigned Index,
65 Arg(const Option Opt, StringRef Spelling, unsigned Index,
67 Arg(const Option Opt, StringRef Spelling, unsigned Index,
73 const Option &getOption() const { return Opt; } in getOption()
DArgList.h468 void AddFlagArg(const Arg *BaseArg, const Option Opt) { in AddFlagArg() argument
469 append(MakeFlagArg(BaseArg, Opt)); in AddFlagArg()
475 void AddPositionalArg(const Arg *BaseArg, const Option Opt, in AddPositionalArg() argument
477 append(MakePositionalArg(BaseArg, Opt, Value)); in AddPositionalArg()
483 void AddSeparateArg(const Arg *BaseArg, const Option Opt, in AddSeparateArg() argument
485 append(MakeSeparateArg(BaseArg, Opt, Value)); in AddSeparateArg()
490 void AddJoinedArg(const Arg *BaseArg, const Option Opt, in AddJoinedArg() argument
492 append(MakeJoinedArg(BaseArg, Opt, Value)); in AddJoinedArg()
496 Arg *MakeFlagArg(const Arg *BaseArg, const Option Opt) const;
500 Arg *MakePositionalArg(const Arg *BaseArg, const Option Opt,
[all …]
/external/llvm/include/llvm/Option/
DOptSpecifier.h29 /*implicit*/ OptSpecifier(const Option *Opt);
35 bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); }
36 bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); }
DArgList.h411 void AddFlagArg(const Arg *BaseArg, const Option Opt) { in AddFlagArg() argument
412 append(MakeFlagArg(BaseArg, Opt)); in AddFlagArg()
418 void AddPositionalArg(const Arg *BaseArg, const Option Opt, in AddPositionalArg() argument
420 append(MakePositionalArg(BaseArg, Opt, Value)); in AddPositionalArg()
427 void AddSeparateArg(const Arg *BaseArg, const Option Opt, in AddSeparateArg() argument
429 append(MakeSeparateArg(BaseArg, Opt, Value)); in AddSeparateArg()
435 void AddJoinedArg(const Arg *BaseArg, const Option Opt, in AddJoinedArg() argument
437 append(MakeJoinedArg(BaseArg, Opt, Value)); in AddJoinedArg()
442 Arg *MakeFlagArg(const Arg *BaseArg, const Option Opt) const;
446 Arg *MakePositionalArg(const Arg *BaseArg, const Option Opt,
[all …]
DArg.h37 const Option Opt;
62 Arg(const Option Opt, StringRef Spelling, unsigned Index,
64 Arg(const Option Opt, StringRef Spelling, unsigned Index,
66 Arg(const Option Opt, StringRef Spelling, unsigned Index,
70 const Option &getOption() const { return Opt; } in getOption()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Demplace.pass.cpp51 using Opt = std::optional<T>; in test_one_arg() typedef
53 Opt opt; in test_one_arg()
61 Opt opt; in test_one_arg()
69 Opt opt(2); in test_one_arg()
77 Opt opt(2); in test_one_arg()
91 using Opt = std::optional<T>; in test_multi_arg() typedef
93 Opt opt; in test_multi_arg()
101 Opt opt; in test_multi_arg()
109 Opt opt; in test_multi_arg()
Doptional_U.pass.cpp167 using Opt = std::optional<T>; in test_ambigious_assign() typedef
168 static_assert(!std::is_assignable<Opt&, const OptInt&&>::value, ""); in test_ambigious_assign()
169 static_assert(!std::is_assignable<Opt&, const OptInt&>::value, ""); in test_ambigious_assign()
170 static_assert(!std::is_assignable<Opt&, OptInt&>::value, ""); in test_ambigious_assign()
196 using Opt = std::optional<T>; in test_ambigious_assign() typedef
197 static_assert(std::is_assignable<Opt&, OptInt&&>::value, ""); in test_ambigious_assign()
198 static_assert(!std::is_assignable<Opt&, const OptInt&>::value, ""); in test_ambigious_assign()
199 static_assert(!std::is_assignable<Opt&, OptInt&>::value, ""); in test_ambigious_assign()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DCommandLine.cpp118 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) { in addLiteralOption() argument
119 if (Opt.hasArgStr()) in addLiteralOption()
121 if (!SC->OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption()
133 addLiteralOption(Opt, Sub, Name); in addLiteralOption()
138 void addLiteralOption(Option &Opt, StringRef Name) { in addLiteralOption() argument
139 if (Opt.Subs.empty()) in addLiteralOption()
140 addLiteralOption(Opt, &*TopLevelSubCommand, Name); in addLiteralOption()
142 for (auto SC : Opt.Subs) in addLiteralOption()
143 addLiteralOption(Opt, SC, Name); in addLiteralOption()
209 for (auto Opt = Sub.PositionalOpts.begin(); in removeOption() local
[all …]
/external/llvm/lib/Support/
DCommandLine.cpp114 void addLiteralOption(Option &Opt, SubCommand *SC, const char *Name) { in addLiteralOption() argument
115 if (Opt.hasArgStr()) in addLiteralOption()
117 if (!SC->OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption()
129 addLiteralOption(Opt, Sub, Name); in addLiteralOption()
134 void addLiteralOption(Option &Opt, const char *Name) { in addLiteralOption() argument
135 if (Opt.Subs.empty()) in addLiteralOption()
136 addLiteralOption(Opt, &*TopLevelSubCommand, Name); in addLiteralOption()
138 for (auto SC : Opt.Subs) in addLiteralOption()
139 addLiteralOption(Opt, SC, Name); in addLiteralOption()
205 for (auto Opt = Sub.PositionalOpts.begin(); in removeOption() local
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DCommandLine.cpp128 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) { in addLiteralOption() argument
129 if (Opt.hasArgStr()) in addLiteralOption()
131 if (!SC->OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption()
143 addLiteralOption(Opt, Sub, Name); in addLiteralOption()
148 void addLiteralOption(Option &Opt, StringRef Name) { in addLiteralOption() argument
149 if (Opt.Subs.empty()) in addLiteralOption()
150 addLiteralOption(Opt, &*TopLevelSubCommand, Name); in addLiteralOption()
152 for (auto SC : Opt.Subs) in addLiteralOption()
153 addLiteralOption(Opt, SC, Name); in addLiteralOption()
219 for (auto Opt = Sub.PositionalOpts.begin(); in removeOption() local
[all …]
/external/swiftshader/third_party/LLVM/tools/llvm-ld/
DOptimize.cpp105 const PassInfo *Opt = OptimizationList[i]; in Optimize() local
106 if (Opt->getNormalCtor()) in Optimize()
107 addPass(Passes, Opt->getNormalCtor()()); in Optimize()
109 errs() << "llvm-ld: cannot create pass: " << Opt->getPassName() in Optimize()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPassNameParser.h41 cl::Option *Opt; variable
43 PassNameParser() : Opt(0) {} in PassNameParser()
47 Opt = &O; in initialize()
69 if (ignorablePass(P) || !Opt) return; in passRegistered()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DCommandLine.h407 template <class Opt> void apply(Opt &O) const { O.setInitialValue(Init); } in apply()
423 template <class Opt> void apply(Opt &O) const { O.setLocation(O, Loc); } in apply()
437 template <class Opt> void apply(Opt &O) const { O.setCategory(Category); } in apply()
446 template <class Opt> void apply(Opt &O) const { O.addSubCommand(Sub); } in apply()
621 template <class Opt> void apply(Opt &O) const {
1129 template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); }
1134 template <class Opt> static void opt(StringRef Str, Opt &O) {
1139 template <class Opt> static void opt(StringRef Str, Opt &O) {
1144 template <class Opt> static void opt(StringRef Str, Opt &O) {
1172 template <class Opt, class Mod, class... Mods>
[all …]
/external/llvm/include/llvm/Support/
DCommandLine.h376 template <class Opt> void apply(Opt &O) const { O.setInitialValue(Init); } in apply()
391 template <class Opt> void apply(Opt &O) const { O.setLocation(O, Loc); } in apply()
404 template <class Opt> void apply(Opt &O) const { O.setCategory(Category); } in apply()
412 template <class Opt> void apply(Opt &O) const { O.addSubCommand(Sub); } in apply()
589 template <class Opt> void apply(Opt &O) const {
1098 template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); }
1103 template <class Opt> static void opt(const char *Str, Opt &O) {
1108 template <class Opt> static void opt(const char *Str, Opt &O) {
1113 template <class Opt> static void opt(const char *Str, Opt &O) {
1137 template <class Opt, class Mod, class... Mods>
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCommandLine.h392 template <class Opt> void apply(Opt &O) const { O.setInitialValue(Init); } in apply()
408 template <class Opt> void apply(Opt &O) const { O.setLocation(O, Loc); } in apply()
422 template <class Opt> void apply(Opt &O) const { O.setCategory(Category); } in apply()
431 template <class Opt> void apply(Opt &O) const { O.addSubCommand(Sub); } in apply()
606 template <class Opt> void apply(Opt &O) const {
1112 template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); }
1117 template <class Opt> static void opt(StringRef Str, Opt &O) {
1122 template <class Opt> static void opt(StringRef Str, Opt &O) {
1127 template <class Opt> static void opt(StringRef Str, Opt &O) {
1155 template <class Opt, class Mod, class... Mods>
[all …]

1234