Lines Matching defs:Next

149       if (LookForDecls && CurrentToken->Next) {
153 FormatToken *Next = CurrentToken->Next;
156 CurrentToken->is(tok::identifier) && Next->isNot(tok::equal)) {
170 if (MightBeFunctionType && CurrentToken->Next &&
171 (CurrentToken->Next->is(tok::l_paren) ||
172 (CurrentToken->Next->is(tok::l_square) &&
203 if (CurrentToken->is(tok::comma) && CurrentToken->Next &&
204 !CurrentToken->Next->HasUnescapedNewline &&
205 !CurrentToken->Next->isTrailingComment())
252 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_paren) &&
509 if (CurrentToken->isNot(tok::comment) || CurrentToken->Next)
595 CurrentToken->Next && CurrentToken->Next->is(tok::string_literal))
641 CurrentToken = CurrentToken->Next;
775 } else if (Current.is(tok::at) && Current.Next) {
776 switch (Current.Next->Tok.getObjCKeywordID()) {
851 Tok.Next && Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace);
856 (Tok.Next && Tok.Next->isBinaryOperator())))
858 else if (Tok.Next && Tok.Next->isNot(tok::string_literal) &&
859 (Tok.Next->Tok.isLiteral() ||
860 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof)))
869 LeftOfParens->Type != TT_TemplateCloser && Tok.Next) {
870 if (Tok.Next->isOneOf(tok::identifier, tok::numeric_constant)) {
878 if (Prev && Tok.Next && Tok.Next->Next) {
879 bool NextIsUnary = Tok.Next->isUnaryOperator() ||
880 Tok.Next->isOneOf(tok::amp, tok::star);
881 IsCast = NextIsUnary && Tok.Next->Next->isOneOf(
1151 Current = Current->Next;
1153 Current = Current->Next;
1168 (*I)->First->Next == nullptr)
1209 const FormatToken *Next = Current.Next;
1210 for (; Next; Next = Next->Next) {
1211 if (Next->Type == TT_TemplateOpener) {
1212 Next = Next->MatchingParen;
1213 } else if (Next->is(tok::coloncolon)) {
1214 Next = Next->Next;
1215 if (!Next || !Next->is(tok::identifier))
1217 } else if (Next->is(tok::l_paren)) {
1223 if (!Next)
1225 assert(Next->is(tok::l_paren));
1226 if (Next->Next == Next->MatchingParen)
1228 for (const FormatToken *Tok = Next->Next; Tok != Next->MatchingParen;
1229 Tok = Tok->Next) {
1248 if (!Line.First->Next)
1250 FormatToken *Current = Line.First->Next;
1315 Current = Current->Next;
1319 for (Current = Line.First; Current != nullptr; Current = Current->Next) {
1351 if (Left.is(tok::comma) || (Right.is(tok::identifier) && Right.Next &&
1352 Right.Next->Type == TT_DictLiteral))
1392 (!Right.Next || Right.Next->isNot(tok::l_paren))) {
1657 } else if (Right.is(tok::lessless) && Right.Next &&
1659 Right.Next->is(tok::string_literal)) {
1787 if (Right.is(tok::identifier) && Right.Next &&
1788 Right.Next->Type == TT_DictLiteral)
1830 if (!Tok->Next)
1832 Tok = Tok->Next;