Lines Matching refs:PreviousNonComment

390   const FormatToken *PreviousNonComment = Current.getPreviousNonComment();  in addTokenOnNewLine()  local
428 } else if (PreviousNonComment && PreviousNonComment->is(tok::colon) && in addTokenOnNewLine()
429 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
453 (PreviousNonComment && PreviousNonComment->is(tok::question))) in addTokenOnNewLine()
480 if (PreviousNonComment && in addTokenOnNewLine()
481 !PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
482 (PreviousNonComment->isNot(TT_TemplateCloser) || in addTokenOnNewLine()
484 !PreviousNonComment->isOneOf(TT_BinaryOperator, TT_JavaAnnotation, in addTokenOnNewLine()
486 Current.isNot(TT_BinaryOperator) && !PreviousNonComment->opensScope()) in addTokenOnNewLine()
491 if (PreviousNonComment && in addTokenOnNewLine()
492 (PreviousNonComment->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))) in addTokenOnNewLine()
518 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in getNewLineColumn() local
560 if ((PreviousNonComment && in getNewLineColumn()
561 (PreviousNonComment->ClosesTemplateDeclaration || in getNewLineColumn()
562 PreviousNonComment->isOneOf(TT_AttributeParen, TT_JavaAnnotation, in getNewLineColumn()
590 if (PreviousNonComment && PreviousNonComment->is(tok::colon) && in getNewLineColumn()
591 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) in getNewLineColumn()
600 if (State.Stack.back().Indent == State.FirstIndent && PreviousNonComment && in getNewLineColumn()
601 PreviousNonComment->isNot(tok::r_brace)) in getNewLineColumn()