Lines Matching +full:- +full:it
1 //===--- ArgList.cpp - Argument List Management ---------------------------===//
8 //===----------------------------------------------------------------------===//
29 const Option &O = (*Current)->getOption(); in SkipToNextArg()
43 [=](Arg *A) { return A->getOption().matches(Id); }), in eraseArg()
49 for (const_reverse_iterator it = rbegin(), ie = rend(); it != ie; ++it) in getLastArgNoClaim() local
50 if ((*it)->getOption().matches(Id)) in getLastArgNoClaim()
51 return *it; in getLastArgNoClaim()
57 for (const_reverse_iterator it = rbegin(), ie = rend(); it != ie; ++it) in getLastArgNoClaim() local
58 if ((*it)->getOption().matches(Id0) || in getLastArgNoClaim()
59 (*it)->getOption().matches(Id1)) in getLastArgNoClaim()
60 return *it; in getLastArgNoClaim()
67 for (const_reverse_iterator it = rbegin(), ie = rend(); it != ie; ++it) in getLastArgNoClaim() local
68 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim()
69 (*it)->getOption().matches(Id2)) in getLastArgNoClaim()
70 return *it; in getLastArgNoClaim()
77 for (const_reverse_iterator it = rbegin(), ie = rend(); it != ie; ++it) in getLastArgNoClaim() local
78 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim()
79 (*it)->getOption().matches(Id2) || (*it)->getOption().matches(Id3)) in getLastArgNoClaim()
80 return *it; in getLastArgNoClaim()
86 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
87 if ((*it)->getOption().matches(Id)) { in getLastArg()
88 Res = *it; in getLastArg()
89 Res->claim(); in getLastArg()
98 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
99 if ((*it)->getOption().matches(Id0) || in getLastArg()
100 (*it)->getOption().matches(Id1)) { in getLastArg()
101 Res = *it; in getLastArg()
102 Res->claim(); in getLastArg()
113 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
114 if ((*it)->getOption().matches(Id0) || in getLastArg()
115 (*it)->getOption().matches(Id1) || in getLastArg()
116 (*it)->getOption().matches(Id2)) { in getLastArg()
117 Res = *it; in getLastArg()
118 Res->claim(); in getLastArg()
128 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
129 if ((*it)->getOption().matches(Id0) || in getLastArg()
130 (*it)->getOption().matches(Id1) || in getLastArg()
131 (*it)->getOption().matches(Id2) || in getLastArg()
132 (*it)->getOption().matches(Id3)) { in getLastArg()
133 Res = *it; in getLastArg()
134 Res->claim(); in getLastArg()
145 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
146 if ((*it)->getOption().matches(Id0) || in getLastArg()
147 (*it)->getOption().matches(Id1) || in getLastArg()
148 (*it)->getOption().matches(Id2) || in getLastArg()
149 (*it)->getOption().matches(Id3) || in getLastArg()
150 (*it)->getOption().matches(Id4)) { in getLastArg()
151 Res = *it; in getLastArg()
152 Res->claim(); in getLastArg()
163 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
164 if ((*it)->getOption().matches(Id0) || in getLastArg()
165 (*it)->getOption().matches(Id1) || in getLastArg()
166 (*it)->getOption().matches(Id2) || in getLastArg()
167 (*it)->getOption().matches(Id3) || in getLastArg()
168 (*it)->getOption().matches(Id4) || in getLastArg()
169 (*it)->getOption().matches(Id5)) { in getLastArg()
170 Res = *it; in getLastArg()
171 Res->claim(); in getLastArg()
183 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
184 if ((*it)->getOption().matches(Id0) || in getLastArg()
185 (*it)->getOption().matches(Id1) || in getLastArg()
186 (*it)->getOption().matches(Id2) || in getLastArg()
187 (*it)->getOption().matches(Id3) || in getLastArg()
188 (*it)->getOption().matches(Id4) || in getLastArg()
189 (*it)->getOption().matches(Id5) || in getLastArg()
190 (*it)->getOption().matches(Id6)) { in getLastArg()
191 Res = *it; in getLastArg()
192 Res->claim(); in getLastArg()
204 for (const_iterator it = begin(), ie = end(); it != ie; ++it) { in getLastArg() local
205 if ((*it)->getOption().matches(Id0) || in getLastArg()
206 (*it)->getOption().matches(Id1) || in getLastArg()
207 (*it)->getOption().matches(Id2) || in getLastArg()
208 (*it)->getOption().matches(Id3) || in getLastArg()
209 (*it)->getOption().matches(Id4) || in getLastArg()
210 (*it)->getOption().matches(Id5) || in getLastArg()
211 (*it)->getOption().matches(Id6) || in getLastArg()
212 (*it)->getOption().matches(Id7)) { in getLastArg()
213 Res = *it; in getLastArg()
214 Res->claim(); in getLastArg()
223 return A->getOption().matches(Pos); in hasFlag()
230 return A->getOption().matches(Pos) || A->getOption().matches(PosAlias); in hasFlag()
237 return A->getValue(); in getLastArgValue()
249 A->claim(); in AddLastArg()
250 A->render(*this, Output); in AddLastArg()
257 A->claim(); in AddLastArg()
258 A->render(*this, Output); in AddLastArg()
266 if (Arg->getOption().matches(Id)) { in AddAllArgs()
267 Arg->claim(); in AddAllArgs()
268 Arg->render(*this, Output); in AddAllArgs()
275 /// This 3-opt variant of AddAllArgs could be eliminated in favor of one
280 Arg->claim(); in AddAllArgs()
281 Arg->render(*this, Output); in AddAllArgs()
288 Arg->claim(); in AddAllArgValues()
289 const auto &Values = Arg->getValues(); in AddAllArgValues()
298 Arg->claim(); in AddAllArgsTranslated()
302 Arg->getValue(0))); in AddAllArgsTranslated()
305 Output.push_back(Arg->getValue(0)); in AddAllArgsTranslated()
312 Arg->claim(); in ClaimAllArgs()
316 for (const_iterator it = begin(), ie = end(); it != ie; ++it) in ClaimAllArgs() local
317 if (!(*it)->isClaimed()) in ClaimAllArgs()
318 (*it)->claim(); in ClaimAllArgs()
335 A->print(O); in print()
351 : NumInputArgStrings(ArgEnd - ArgBegin) { in InputArgList()
369 assert(Index0 + 1 == Index1 && "Unexpected non-consecutive indices!"); in MakeIndex()