Home
last modified time | relevance | path

Searched refs:NextNonComment (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Format/
DContinuationIndenter.cpp449 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()
[all …]
DTokenAnnotator.cpp1447 const FormatToken *NextNonComment = Current->getNextNonComment(); in getCurrentPrecedence() local
1450 if (NextNonComment && NextNonComment->is(tok::colon) && in getCurrentPrecedence()
1451 NextNonComment->is(TT_DictLiteral)) in getCurrentPrecedence()
1459 (Current->is(tok::comment) && NextNonComment && in getCurrentPrecedence()
1460 NextNonComment->is(TT_SelectorName))) in getCurrentPrecedence()