Lines Matching refs:NextNonComment
449 const FormatToken *NextNonComment = Previous.getNextNonComment(); in addTokenOnNewLine() local
450 if (!NextNonComment) in addTokenOnNewLine()
451 NextNonComment = &Current; in addTokenOnNewLine()
463 if (NextNonComment->is(tok::lessless) && in addTokenOnNewLine()
488 if (NextNonComment->isMemberAccess()) { in addTokenOnNewLine()
491 } else if (NextNonComment->is(TT_SelectorName)) { in addTokenOnNewLine()
493 if (NextNonComment->LongestObjCSelectorName == 0) { in addTokenOnNewLine()
501 NextNonComment->LongestObjCSelectorName; in addTokenOnNewLine()
504 State.Stack.back().ColonPos <= NextNonComment->ColumnWidth) { in addTokenOnNewLine()
505 State.Stack.back().ColonPos = State.Column + NextNonComment->ColumnWidth; in addTokenOnNewLine()
531 if (NextNonComment->is(tok::question) || in addTokenOnNewLine()
606 const FormatToken *NextNonComment = Previous.getNextNonComment(); in getNewLineColumn() local
607 if (!NextNonComment) in getNewLineColumn()
608 NextNonComment = &Current; in getNewLineColumn()
616 if (NextNonComment->is(tok::l_brace) && NextNonComment->BlockKind == BK_Block) in getNewLineColumn()
630 if (NextNonComment->isStringLiteral() && State.StartOfStringLiteral != 0) in getNewLineColumn()
632 if (NextNonComment->is(TT_ObjCStringLiteral) && in getNewLineColumn()
635 if (NextNonComment->is(tok::lessless) && in getNewLineColumn()
638 if (NextNonComment->isMemberAccess()) { in getNewLineColumn()
644 ((NextNonComment->is(tok::colon) && in getNewLineColumn()
645 NextNonComment->is(TT_ConditionalExpr)) || in getNewLineColumn()
656 NextNonComment->isOneOf(tok::kw_operator, TT_FunctionDeclarationName))) in getNewLineColumn()
658 if (NextNonComment->is(TT_SelectorName)) { in getNewLineColumn()
660 if (NextNonComment->LongestObjCSelectorName == 0) in getNewLineColumn()
666 NextNonComment->LongestObjCSelectorName - in getNewLineColumn()
667 NextNonComment->ColumnWidth; in getNewLineColumn()
671 if (State.Stack.back().ColonPos > NextNonComment->ColumnWidth) in getNewLineColumn()
672 return State.Stack.back().ColonPos - NextNonComment->ColumnWidth; in getNewLineColumn()
675 if (NextNonComment->is(TT_ArraySubscriptLSquare)) { in getNewLineColumn()
683 if (NextNonComment->is(tok::identifier) && NextNonComment->FakeRParens == 0 && in getNewLineColumn()
684 NextNonComment->Next && NextNonComment->Next->is(TT_ObjCMethodExpr)) in getNewLineColumn()
687 if (NextNonComment->isOneOf(TT_StartOfName, TT_PointerOrReference) || in getNewLineColumn()
693 if (NextNonComment->is(TT_CtorInitializerColon)) in getNewLineColumn()
695 if (NextNonComment->is(TT_CtorInitializerComma)) in getNewLineColumn()
1028 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeCloser() local
1029 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()