Lines Matching refs:PreviousNonComment
415 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in addTokenOnNewLine() local
448 Current.NestingLevel != 0 || !PreviousNonComment->is(tok::equal) || in addTokenOnNewLine()
471 } else if (PreviousNonComment && PreviousNonComment->is(tok::colon) && in addTokenOnNewLine()
472 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
496 (PreviousNonComment && PreviousNonComment->is(tok::question))) in addTokenOnNewLine()
524 if (PreviousNonComment && in addTokenOnNewLine()
525 !PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
526 (PreviousNonComment->isNot(TT_TemplateCloser) || in addTokenOnNewLine()
528 !PreviousNonComment->isOneOf( in addTokenOnNewLine()
531 Current.isNot(TT_BinaryOperator) && !PreviousNonComment->opensScope()) in addTokenOnNewLine()
536 if (PreviousNonComment && in addTokenOnNewLine()
537 (PreviousNonComment->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))) in addTokenOnNewLine()
563 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in getNewLineColumn() local
608 if ((PreviousNonComment && in getNewLineColumn()
609 (PreviousNonComment->ClosesTemplateDeclaration || in getNewLineColumn()
610 PreviousNonComment->isOneOf( in getNewLineColumn()
648 if (PreviousNonComment && PreviousNonComment->is(tok::colon) && in getNewLineColumn()
649 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) in getNewLineColumn()
658 if (State.Stack.back().Indent == State.FirstIndent && PreviousNonComment && in getNewLineColumn()
659 PreviousNonComment->isNot(tok::r_brace)) in getNewLineColumn()