Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DContinuationIndenter.cpp416 const FormatToken *NextNonComment = Previous.getNextNonComment(); in addTokenOnNewLine() local
417 if (!NextNonComment) in addTokenOnNewLine()
418 NextNonComment = &Current; in addTokenOnNewLine()
430 if (NextNonComment->is(tok::lessless) && in addTokenOnNewLine()
452 if (NextNonComment->isMemberAccess()) { in addTokenOnNewLine()
455 } else if (NextNonComment->is(TT_SelectorName)) { in addTokenOnNewLine()
457 if (NextNonComment->LongestObjCSelectorName == 0) { in addTokenOnNewLine()
465 NextNonComment->LongestObjCSelectorName; in addTokenOnNewLine()
468 State.Stack.back().ColonPos <= NextNonComment->ColumnWidth) { in addTokenOnNewLine()
469 State.Stack.back().ColonPos = State.Column + NextNonComment->ColumnWidth; in addTokenOnNewLine()
[all …]
DTokenAnnotator.cpp1361 const FormatToken *NextNonComment = Current->getNextNonComment(); in getCurrentPrecedence() local
1364 if (NextNonComment && NextNonComment->is(tok::colon) && in getCurrentPrecedence()
1365 NextNonComment->is(TT_DictLiteral)) in getCurrentPrecedence()
1373 (Current->is(tok::comment) && NextNonComment && in getCurrentPrecedence()
1374 NextNonComment->is(TT_SelectorName))) in getCurrentPrecedence()