Lines Matching refs:NextNonComment
416 const FormatToken *NextNonComment = Previous.getNextNonComment(); in addTokenOnNewLine() local
417 if (!NextNonComment) in addTokenOnNewLine()
418 NextNonComment = &Current; in addTokenOnNewLine()
430 if (NextNonComment->is(tok::lessless) && in addTokenOnNewLine()
452 if (NextNonComment->isMemberAccess()) { in addTokenOnNewLine()
455 } else if (NextNonComment->is(TT_SelectorName)) { in addTokenOnNewLine()
457 if (NextNonComment->LongestObjCSelectorName == 0) { in addTokenOnNewLine()
465 NextNonComment->LongestObjCSelectorName; in addTokenOnNewLine()
468 State.Stack.back().ColonPos <= NextNonComment->ColumnWidth) { in addTokenOnNewLine()
469 State.Stack.back().ColonPos = State.Column + NextNonComment->ColumnWidth; in addTokenOnNewLine()
495 if (NextNonComment->is(tok::question) || in addTokenOnNewLine()
564 const FormatToken *NextNonComment = Previous.getNextNonComment(); in getNewLineColumn() local
565 if (!NextNonComment) in getNewLineColumn()
566 NextNonComment = &Current; in getNewLineColumn()
574 if (NextNonComment->is(tok::l_brace) && NextNonComment->BlockKind == BK_Block) in getNewLineColumn()
588 if (NextNonComment->isStringLiteral() && State.StartOfStringLiteral != 0) in getNewLineColumn()
590 if (NextNonComment->is(TT_ObjCStringLiteral) && in getNewLineColumn()
593 if (NextNonComment->is(tok::lessless) && in getNewLineColumn()
596 if (NextNonComment->isMemberAccess()) { in getNewLineColumn()
602 ((NextNonComment->is(tok::colon) && in getNewLineColumn()
603 NextNonComment->is(TT_ConditionalExpr)) || in getNewLineColumn()
614 NextNonComment->isOneOf(tok::kw_operator, TT_FunctionDeclarationName))) in getNewLineColumn()
616 if (NextNonComment->is(TT_SelectorName)) { in getNewLineColumn()
618 if (NextNonComment->LongestObjCSelectorName == 0) in getNewLineColumn()
624 NextNonComment->LongestObjCSelectorName - in getNewLineColumn()
625 NextNonComment->ColumnWidth; in getNewLineColumn()
629 if (State.Stack.back().ColonPos > NextNonComment->ColumnWidth) in getNewLineColumn()
630 return State.Stack.back().ColonPos - NextNonComment->ColumnWidth; in getNewLineColumn()
633 if (NextNonComment->is(TT_ArraySubscriptLSquare)) { in getNewLineColumn()
641 if (NextNonComment->is(tok::identifier) && NextNonComment->FakeRParens == 0 && in getNewLineColumn()
642 NextNonComment->Next && NextNonComment->Next->is(TT_ObjCMethodExpr)) in getNewLineColumn()
645 if (NextNonComment->isOneOf(TT_StartOfName, TT_PointerOrReference) || in getNewLineColumn()
651 if (NextNonComment->is(TT_CtorInitializerColon)) in getNewLineColumn()
653 if (NextNonComment->is(TT_CtorInitializerComma)) in getNewLineColumn()
977 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeCloser() local
978 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()