Lines Matching refs:NextToken
321 State.NextToken = &RootToken;
332 DebugTokenState(*State.NextToken);
344 while (State.NextToken != NULL) {
453 const AnnotatedToken *NextToken;
479 if (NextToken != Other.NextToken)
480 return NextToken < Other.NextToken;
507 const AnnotatedToken &Current = *State.NextToken;
508 const AnnotatedToken &Previous = *State.NextToken->Parent;
512 State.Column += State.NextToken->FormatTok.WhiteSpaceLength +
513 State.NextToken->FormatTok.TokenLength;
514 if (State.NextToken->Children.empty())
515 State.NextToken = NULL;
517 State.NextToken = &State.NextToken->Children[0];
614 unsigned Spaces = State.NextToken->SpacesRequiredBefore;
632 State.NextToken->Parent->Type == TT_TemplateOpener))
666 const AnnotatedToken &Current = *State.NextToken;
696 State.NextToken->Type == TT_TemplateOpener) {
725 (Current.is(tok::r_brace) && State.NextToken != &RootToken) ||
726 State.NextToken->Type == TT_TemplateCloser) {
744 if (State.NextToken->Children.empty())
745 State.NextToken = NULL;
747 State.NextToken = &State.NextToken->Children[0];
911 if (Node->State.NextToken == NULL) {
950 << Current->Previous->State.NextToken->FormatTok.Tok.getName()
951 << ": " << Current->Previous->State.NextToken->SplitPenalty << "\n";
968 Penalty += PreviousNode->State.NextToken->SplitPenalty;
984 if (!State.NextToken->CanBreakBefore &&
985 !(State.NextToken->is(tok::r_brace) &&
998 if (State.NextToken->MustBreakBefore)
1000 if (State.NextToken->is(tok::r_brace) &&
1003 if (State.NextToken->Parent->is(tok::semi) &&
1006 if ((State.NextToken->Parent->isOneOf(tok::comma, tok::semi) ||
1007 State.NextToken->is(tok::question) ||
1008 State.NextToken->Type == TT_ConditionalExpr) &&
1010 !isTrailingComment(*State.NextToken) &&
1011 State.NextToken->isNot(tok::r_paren) &&
1012 State.NextToken->isNot(tok::r_brace))
1016 if (State.NextToken->Type == TT_ObjCSelectorName &&
1017 State.NextToken->LongestObjCSelectorName == 0 &&
1020 if ((State.NextToken->Type == TT_CtorInitializerColon ||
1021 (State.NextToken->Parent->ClosesTemplateDeclaration &&
1024 if (State.NextToken->Type == TT_InlineASMColon)
1031 if (State.NextToken->isOneOf(tok::period, tok::arrow) &&
1040 if (State.NextToken && State.NextToken->Parent)
1041 return Line.Last->TotalLength - State.NextToken->Parent->TotalLength;