Lines Matching refs:Next

130   FormatToken *Next = First->Next;  in insertQualifierAfter()  local
131 if (!Next) in insertQualifierAfter()
133 auto Range = CharSourceRange::getCharRange(Next->getStartOfNonWhitespace(), in insertQualifierAfter()
134 Next->Tok.getEndLoc()); in insertQualifierAfter()
137 NewText += Next->TokenText; in insertQualifierAfter()
172 End = Last->Next; in rotateTokens()
173 Begin = First->Next; in rotateTokens()
190 Tok = Tok->Next; in rotateTokens()
214 if (!Tok->Next) in analyzeRight()
216 if (LeftRightQualifierAlignmentFixer::isPossibleMacro(Tok->Next)) in analyzeRight()
229 EndTemplate = EndTemplate->Next->Next; in analyzeRight()
232 if (EndTemplate && EndTemplate->Next && in analyzeRight()
233 !EndTemplate->Next->isOneOf(tok::equal, tok::l_paren)) { in analyzeRight()
242 FormatToken *Qual = Tok->Next; in analyzeRight()
246 Qual = Qual->Next; in analyzeRight()
253 FormatToken *Closer = Tok->Next->Next; in analyzeRight()
254 rotateTokens(SourceMgr, Fixes, Tok, Tok->Next, /*Left=*/false); in analyzeRight()
261 const FormatToken *NewTok = AnalyzeTemplate(Tok, Tok->Next->Next); in analyzeRight()
268 const FormatToken *NewTok = AnalyzeTemplate(Tok, Tok->Next->Next->Next); in analyzeRight()
274 FormatToken *Next = Tok->Next; in analyzeRight() local
282 while (Next && Next->isOneOf(tok::identifier, tok::coloncolon)) in analyzeRight()
283 Next = Next->Next; in analyzeRight()
284 if (Next && Next->is(TT_TemplateOpener)) { in analyzeRight()
285 Next = Next->MatchingParen; in analyzeRight()
288 if (Next && Next->startsSequence(TT_TemplateCloser, tok::coloncolon, in analyzeRight()
292 assert(Next && "Missing template opener"); in analyzeRight()
293 Next = Next->Next; in analyzeRight()
295 if (Next && Next->isOneOf(tok::star, tok::amp, tok::ampamp) && in analyzeRight()
296 !Tok->Next->isOneOf(Keywords.kw_override, Keywords.kw_final)) { in analyzeRight()
297 if (Next->Previous && !Next->Previous->is(QualifierType)) { in analyzeRight()
298 insertQualifierAfter(SourceMgr, Fixes, Next->Previous, Qualifier); in analyzeRight()
301 return Next; in analyzeRight()
320 Qual = Qual->Next; in analyzeLeft()
330 if (!Qual->Next) in analyzeLeft()
332 Tok = Qual->Next; in analyzeLeft()
334 if (Tok->Next->Next && Tok->Next->Next->isOneOf(tok::identifier, tok::star, in analyzeLeft()
339 rotateTokens(SourceMgr, Fixes, Tok, Tok->Next, /*Left=*/true); in analyzeLeft()
340 Tok = Tok->Next; in analyzeLeft()
344 FormatToken *Closer = Tok->Next->Next; in analyzeLeft()
345 rotateTokens(SourceMgr, Fixes, Tok, Tok->Next, /*Left=*/true); in analyzeLeft()
349 if (Tok->is(TT_TemplateOpener) && Tok->Next && in analyzeLeft()
350 (Tok->Next->is(tok::identifier) || Tok->Next->isSimpleTypeSpecifier()) && in analyzeLeft()
351 Tok->Next->Next && Tok->Next->Next->is(QualifierType)) { in analyzeLeft()
352 rotateTokens(SourceMgr, Fixes, Tok->Next, Tok->Next->Next, /*Left=*/true); in analyzeLeft()
356 Tok->Next) { in analyzeLeft()
361 const FormatToken *Next = Tok->Next; in analyzeLeft() local
363 while (Next && Next->isOneOf(tok::identifier, tok::coloncolon)) in analyzeLeft()
364 Next = Next->Next; in analyzeLeft()
365 if (Next && Next->Previous && in analyzeLeft()
366 Next->Previous->startsSequence(tok::identifier, TT_TemplateOpener)) { in analyzeLeft()
369 if (Next->is(tok::comment) && Next->getNextNonComment()) in analyzeLeft()
370 Next = Next->getNextNonComment(); in analyzeLeft()
371 assert(Next->MatchingParen && "Missing template closer"); in analyzeLeft()
372 Next = Next->MatchingParen; in analyzeLeft()
377 if (Next->ClosesRequiresClause) in analyzeLeft()
378 return Next->MatchingParen; in analyzeLeft()
379 Next = Next->Next; in analyzeLeft()
383 if (Next && Next->startsSequence(tok::coloncolon, tok::identifier)) in analyzeLeft()
384 Next = Next->Next->Next; in analyzeLeft()
385 if (Next && Next->is(QualifierType)) { in analyzeLeft()
388 removeToken(SourceMgr, Fixes, Next); in analyzeLeft()
389 return Next; in analyzeLeft()
392 if (Next && Next->Next && in analyzeLeft()
393 Next->Next->isOneOf(tok::amp, tok::ampamp, tok::star)) { in analyzeLeft()
394 if (Next->is(QualifierType)) { in analyzeLeft()
397 removeToken(SourceMgr, Fixes, Next); in analyzeLeft()
398 return Next; in analyzeLeft()
449 for (const auto *Tok = First; Tok && Tok != Last && Tok->Next; in analyze()
450 Tok = Tok->Next) { in analyze()