Lines Matching refs:NextNonComment

391   const FormatToken *NextNonComment = Previous.getNextNonComment();  in addTokenOnNewLine()  local
392 if (!NextNonComment) in addTokenOnNewLine()
393 NextNonComment = &Current; in addTokenOnNewLine()
405 if (NextNonComment->is(tok::lessless) && in addTokenOnNewLine()
413 if (NextNonComment->isMemberAccess()) { in addTokenOnNewLine()
416 } else if (NextNonComment->is(TT_SelectorName)) { in addTokenOnNewLine()
418 if (NextNonComment->LongestObjCSelectorName == 0) { in addTokenOnNewLine()
422 State.Stack.back().Indent + NextNonComment->LongestObjCSelectorName; in addTokenOnNewLine()
425 State.Stack.back().ColonPos <= NextNonComment->ColumnWidth) { in addTokenOnNewLine()
426 State.Stack.back().ColonPos = State.Column + NextNonComment->ColumnWidth; in addTokenOnNewLine()
452 if (NextNonComment->is(tok::question) || in addTokenOnNewLine()
519 const FormatToken *NextNonComment = Previous.getNextNonComment(); in getNewLineColumn() local
520 if (!NextNonComment) in getNewLineColumn()
521 NextNonComment = &Current; in getNewLineColumn()
529 if (NextNonComment->is(tok::l_brace) && NextNonComment->BlockKind == BK_Block) in getNewLineColumn()
543 if (NextNonComment->isStringLiteral() && State.StartOfStringLiteral != 0) in getNewLineColumn()
545 if (NextNonComment->is(tok::lessless) && in getNewLineColumn()
548 if (NextNonComment->isMemberAccess()) { in getNewLineColumn()
554 ((NextNonComment->is(tok::colon) && in getNewLineColumn()
555 NextNonComment->is(TT_ConditionalExpr)) || in getNewLineColumn()
565 NextNonComment->isOneOf(tok::kw_operator, TT_FunctionDeclarationName))) in getNewLineColumn()
567 if (NextNonComment->is(TT_SelectorName)) { in getNewLineColumn()
569 if (NextNonComment->LongestObjCSelectorName == 0) in getNewLineColumn()
572 NextNonComment->LongestObjCSelectorName - in getNewLineColumn()
573 NextNonComment->ColumnWidth; in getNewLineColumn()
577 if (State.Stack.back().ColonPos > NextNonComment->ColumnWidth) in getNewLineColumn()
578 return State.Stack.back().ColonPos - NextNonComment->ColumnWidth; in getNewLineColumn()
581 if (NextNonComment->is(TT_ArraySubscriptLSquare)) { in getNewLineColumn()
586 if (NextNonComment->isOneOf(TT_StartOfName, TT_PointerOrReference) || in getNewLineColumn()
593 if (NextNonComment->is(TT_CtorInitializerColon)) in getNewLineColumn()
595 if (NextNonComment->is(TT_CtorInitializerComma)) in getNewLineColumn()
877 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeCloser() local
878 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()