Lines Matching full:arg

15 #include "llvm/Option/Arg.h"
32 void ArgList::append(Arg *A) {
48 for (Arg *const &A : filtered(Id)) {
50 Arg **ArgsBegin = Args.data();
73 if (Arg *A = getLastArg(Pos, Neg))
80 if (Arg *A = getLastArgNoClaim(Pos, Neg))
87 if (Arg *A = getLastArg(Pos, PosAlias, Neg))
93 if (Arg *A = getLastArg(Id))
106 if (Arg *A = getLastArg(Pos, Neg))
114 for (const Arg *Arg : *this) {
117 if (Arg->getOption().matches(Id)) {
124 if (Arg->getOption().matches(Id)) {
125 Arg->claim();
126 Arg->render(*this, Output);
142 for (auto *Arg : filtered(Id0)) {
143 Arg->claim();
144 Arg->render(*this, Output);
150 for (auto *Arg : filtered(Id0, Id1, Id2)) {
151 Arg->claim();
152 const auto &Values = Arg->getValues();
160 for (auto *Arg : filtered(Id0)) {
161 Arg->claim();
165 Arg->getValue(0)));
168 Output.push_back(Arg->getValue(0));
174 for (auto *Arg : filtered(Id0))
175 Arg->claim();
179 for (auto *Arg : *this)
180 if (!Arg->isClaimed())
181 Arg->claim();
196 for (Arg *A : *this) {
208 for (Arg *A : *this)
248 void DerivedArgList::AddSynthesizedArg(Arg *A) {
249 SynthesizedArgs.push_back(std::unique_ptr<Arg>(A));
252 Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const {
254 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
259 Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt,
263 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
268 Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt,
272 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
277 Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt,
280 SynthesizedArgs.push_back(std::make_unique<Arg>(