Home
last modified time | relevance | path

Searched refs:PreviousNonComment (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DContinuationIndenter.cpp951 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in addTokenOnNewLine() local
1003 !PreviousNonComment || PreviousNonComment->isNot(tok::equal) || in addTokenOnNewLine()
1028 } else if (PreviousNonComment && PreviousNonComment->is(tok::colon) && in addTokenOnNewLine()
1029 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine()
1046 if ((PreviousNonComment && in addTokenOnNewLine()
1047 PreviousNonComment->isOneOf(tok::comma, tok::semi) && in addTokenOnNewLine()
1052 if (PreviousNonComment && in addTokenOnNewLine()
1053 (PreviousNonComment->isOneOf(TT_TemplateCloser, TT_JavaAnnotation) || in addTokenOnNewLine()
1054 PreviousNonComment->ClosesRequiresClause) && in addTokenOnNewLine()
1059 (PreviousNonComment && PreviousNonComment->is(tok::question))) { in addTokenOnNewLine()
[all …]
H A DWhitespaceManager.cpp325 unsigned PreviousNonComment = i - 1; in AlignTokenSequence() local
326 while (PreviousNonComment > Start && in AlignTokenSequence()
327 Changes[PreviousNonComment].Tok->is(tok::comment)) { in AlignTokenSequence()
328 --PreviousNonComment; in AlignTokenSequence()
331 Changes[PreviousNonComment].indentAndNestingLevel()) { in AlignTokenSequence()
H A DUnwrappedLineParser.cpp3462 auto *PreviousNonComment = RequiresToken->getPreviousNonComment(); in parseRequires() local
3464 if (!PreviousNonComment || in parseRequires()
3465 PreviousNonComment->is(TT_RequiresExpressionLBrace)) { in parseRequires()
3472 switch (PreviousNonComment->Tok.getKind()) { in parseRequires()
3488 auto PrevPrev = PreviousNonComment->getPreviousNonComment(); in parseRequires()
3496 if (PreviousNonComment->isTypeOrIdentifier(LangOpts)) { in parseRequires()