Lines Matching refs:Next
200 if (LookForDecls && CurrentToken->Next) { in parseParens()
204 FormatToken *Next = CurrentToken->Next; in parseParens() local
207 CurrentToken->is(tok::identifier) && Next->isNot(tok::equal)) { in parseParens()
223 if (MightBeFunctionType && ProbablyFunctionType && CurrentToken->Next && in parseParens()
224 (CurrentToken->Next->is(tok::l_paren) || in parseParens()
225 (CurrentToken->Next->is(tok::l_square) && Line.MustBeDeclaration))) in parseParens()
230 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_brace) && in parseParens()
235 for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) { in parseParens()
272 if (CurrentToken->is(tok::comma) && CurrentToken->Next && in parseParens()
273 !CurrentToken->Next->HasUnescapedNewline && in parseParens()
274 !CurrentToken->Next->isTrailingComment()) in parseParens()
348 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_paren) && in parseSquare()
527 } else if (Tok->Previous->is(tok::identifier) && Tok->Next && in consumeToken()
528 Tok->Next->isOneOf(tok::r_paren, tok::comma)) { in consumeToken()
630 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next && in consumeToken()
631 Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren, in consumeToken()
671 if (CurrentToken->isNot(tok::comment) || CurrentToken->Next) in parseIncludeDirective()
772 CurrentToken->Next && in parseLine()
773 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
815 CurrentToken->is(Keywords.kw_from) && CurrentToken->Next && in parseLine()
816 CurrentToken->Next->isStringLiteral()) in parseLine()
843 return Tok.TokenText == "goog" && Tok.Next && Tok.Next->is(tok::period) && in isClosureImportStatement()
844 Tok.Next->Next && (Tok.Next->Next->TokenText == "module" || in isClosureImportStatement()
845 Tok.Next->Next->TokenText == "provide" || in isClosureImportStatement()
846 Tok.Next->Next->TokenText == "require" || in isClosureImportStatement()
847 Tok.Next->Next->TokenText == "setTestOnly" || in isClosureImportStatement()
848 Tok.Next->Next->TokenText == "forwardDeclare") && in isClosureImportStatement()
849 Tok.Next->Next->Next && Tok.Next->Next->Next->is(tok::l_paren); in isClosureImportStatement()
875 CurrentToken = CurrentToken->Next; in next()
1036 if (Current.MatchingParen && Current.Next && in determineTokenType()
1037 !Current.Next->isBinaryOperator() && in determineTokenType()
1038 !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace, in determineTokenType()
1046 } else if (Current.is(tok::at) && Current.Next) { in determineTokenType()
1047 if (Current.Next->isStringLiteral()) { in determineTokenType()
1050 switch (Current.Next->Tok.getObjCKeywordID()) { in determineTokenType()
1151 if (Tok.Previous == Tok.MatchingParen || !Tok.Next || !Tok.MatchingParen) in rParenEndsCast()
1179 if (Tok.Next->is(tok::question)) in rParenEndsCast()
1184 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
1188 if (Tok.Next->isNot(tok::string_literal) && in rParenEndsCast()
1189 (Tok.Next->Tok.isLiteral() || in rParenEndsCast()
1190 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof))) in rParenEndsCast()
1199 Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater); in rParenEndsCast()
1211 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this)) in rParenEndsCast()
1214 if (!Tok.Next->Next) in rParenEndsCast()
1221 Tok.Next->isUnaryOperator() || Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
1222 if (!NextIsUnary || Tok.Next->is(tok::plus) || in rParenEndsCast()
1223 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant)) in rParenEndsCast()
1533 Current = Current->Next; in next()
1537 Current = Current->Next; in next()
1554 (*I)->First->Next == nullptr) in setCommentLineLevels()
1592 auto skipOperatorName = [](const FormatToken* Next) -> const FormatToken* { in isFunctionDeclarationName() argument
1593 for (; Next; Next = Next->Next) { in isFunctionDeclarationName()
1594 if (Next->is(TT_OverloadedOperatorLParen)) in isFunctionDeclarationName()
1595 return Next; in isFunctionDeclarationName()
1596 if (Next->is(TT_OverloadedOperator)) in isFunctionDeclarationName()
1598 if (Next->isOneOf(tok::kw_new, tok::kw_delete)) { in isFunctionDeclarationName()
1600 if (Next->Next && Next->Next->is(tok::l_square) && in isFunctionDeclarationName()
1601 Next->Next->Next && Next->Next->Next->is(tok::r_square)) in isFunctionDeclarationName()
1602 Next = Next->Next->Next; in isFunctionDeclarationName()
1612 const FormatToken *Next = Current.Next; in isFunctionDeclarationName() local
1616 Next = skipOperatorName(Next); in isFunctionDeclarationName()
1620 for (; Next; Next = Next->Next) { in isFunctionDeclarationName()
1621 if (Next->is(TT_TemplateOpener)) { in isFunctionDeclarationName()
1622 Next = Next->MatchingParen; in isFunctionDeclarationName()
1623 } else if (Next->is(tok::coloncolon)) { in isFunctionDeclarationName()
1624 Next = Next->Next; in isFunctionDeclarationName()
1625 if (!Next) in isFunctionDeclarationName()
1627 if (Next->is(tok::kw_operator)) { in isFunctionDeclarationName()
1628 Next = skipOperatorName(Next->Next); in isFunctionDeclarationName()
1631 if (!Next->is(tok::identifier)) in isFunctionDeclarationName()
1633 } else if (Next->is(tok::l_paren)) { in isFunctionDeclarationName()
1642 if (!Next || !Next->is(tok::l_paren) || !Next->MatchingParen) in isFunctionDeclarationName()
1647 if (Next->Next == Next->MatchingParen) in isFunctionDeclarationName()
1650 if (Next->MatchingParen->Next && in isFunctionDeclarationName()
1651 Next->MatchingParen->Next->is(TT_PointerOrReference)) in isFunctionDeclarationName()
1653 for (const FormatToken *Tok = Next->Next; Tok && Tok != Next->MatchingParen; in isFunctionDeclarationName()
1654 Tok = Tok->Next) { in isFunctionDeclarationName()
1697 if (!Line.First->Next) in calculateFormattingInformation()
1699 FormatToken *Current = Line.First->Next; in calculateFormattingInformation()
1770 Current = Current->Next; in calculateFormattingInformation()
1774 for (Current = Line.First; Current != nullptr; Current = Current->Next) { in calculateFormattingInformation()
1821 if (Left.is(tok::comma) || (Right.is(tok::identifier) && Right.Next && in splitPenalty()
1822 Right.Next->is(TT_DictLiteral))) in splitPenalty()
1892 (!Right.Next || Right.Next->isNot(tok::l_paren))) { in splitPenalty()
2287 if (Right.is(tok::plus) && Left.is(tok::string_literal) && Right.Next && in mustBreakBefore()
2288 Right.Next->is(tok::string_literal)) in mustBreakBefore()
2318 if (Right.is(tok::lessless) && Right.Next && in mustBreakBefore()
2320 Right.Next->is(tok::string_literal)) in mustBreakBefore()
2397 (!Right.Next || Right.Next->isNot(TT_FunctionDeclarationName))); in canBreakBefore()
2423 if (Right.is(TT_SelectorName) || (Right.is(tok::identifier) && Right.Next && in canBreakBefore()
2424 Right.Next->is(TT_ObjCMethodExpr))) in canBreakBefore()
2474 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral)) in canBreakBefore()
2526 if (!Tok->Next) in printDebugInfo()
2528 Tok = Tok->Next; in printDebugInfo()