Home
last modified time | relevance | path

Searched refs:getNextNonComment (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang/lib/Format/
H A DNamespaceEndCommentsFixer.cpp43 Tok = Tok->getNextNonComment(); in processTokens()
52 Tok = Tok->getNextNonComment(); in skipAttribute()
67 const FormatToken *Tok = NamespaceTok->getNextNonComment(); in computeName()
72 Tok = Tok->getNextNonComment(); in computeName()
75 Tok = Tok->getNextNonComment(); in computeName()
92 Tok = Tok->getNextNonComment(); in computeName()
130 Tok = Tok->getNextNonComment(); in computeName()
H A DUnwrappedLineFormatter.cpp23 const FormatToken *Next = Line.First->getNextNonComment(); in startsExternCBlock()
24 const FormatToken *NextNext = Next ? Next->getNextNonComment() : nullptr; in startsExternCBlock()
276 Tok = Tok->getNextNonComment(); in tryFitMultipleLinesInOne()
285 Tok = Tok->getNextNonComment(); in tryFitMultipleLinesInOne()
354 FirstNonComment = FirstNonComment->getNextNonComment(); in tryFitMultipleLinesInOne()
708 const FormatToken *Tok = Line.First->getNextNonComment(); in tryMergeSimpleBlock()
768 const FormatToken *Next = Tok->getNextNonComment(); in tryMergeSimpleBlock()
H A DTokenAnnotator.h80 return First && First->is(tok::comment) && !First->getNextNonComment(); in isComment()
H A DContinuationIndenter.cpp826 const FormatToken *Next = Previous.MatchingParen->getNextNonComment(); in addTokenOnCurrentLine()
847 const FormatToken *NextNonComment = Previous.getNextNonComment(); in addTokenOnNewLine()
1082 const FormatToken *NextNonComment = Previous.getNextNonComment(); in getNewLineColumn()
1343 const FormatToken *Next = Tok.getNextNonComment(); in moveStateToNextToken()
1619 const FormatToken *NextNoComment = Current.getNextNonComment(); in moveStatePastScopeOpener()
1776 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeCloser()
2551 if (Current.getNextNonComment() && in nextIsMultilineString()
2552 Current.getNextNonComment()->isStringLiteral()) { in nextIsMultilineString()
H A DQualifierAlignmentFixer.cpp369 if (Next->is(tok::comment) && Next->getNextNonComment()) in analyzeLeft()
370 Next = Next->getNextNonComment(); in analyzeLeft()
H A DUsingDeclarationsSorter.cpp201 FirstTok->is(tok::comment) ? FirstTok->getNextNonComment() : FirstTok; in analyze()
H A DTokenAnnotator.cpp1617 const FormatToken *Tok = Line.First->getNextNonComment(); in modifyContext()
1627 Tok = Tok->getNextNonComment(); in modifyContext()
2290 const FormatToken *NextToken = Tok.getNextNonComment(); in determineStarAmpUsage()
2340 NextNonParen = NextNonParen->getNextNonComment(); in determineStarAmpUsage()
2360 const FormatToken *NextNextToken = NextToken->getNextNonComment(); in determineStarAmpUsage()
2535 const FormatToken *NextNonComment = Current->getNextNonComment(); in getCurrentPrecedence()
3634 Right.is(tok::l_brace) && Right.getNextNonComment() && in spaceRequiredBetween()
4018 const FormatToken *Next = Right.getNextNonComment(); in spaceRequiredBefore()
4180 Next = Next->getNextNonComment(); in getFirstNonComment()
4585 auto Next = Comma->getNextNonComment(); in mustBreakBefore()
[all …]
H A DFormatToken.cpp251 if (ItemEnd->getNextNonComment() == Token->MatchingParen) in precomputeFormattingInfos()
H A DFormatToken.h713 LLVM_NODISCARD const FormatToken *getNextNonComment() const { in getNextNonComment() function
749 NamespaceTok = NamespaceTok->getNextNonComment(); in getNamespaceToken()
752 NamespaceTok = NamespaceTok->getNextNonComment(); in getNamespaceToken()
H A DWhitespaceManager.cpp1259 if (C.Tok->getNextNonComment()->isNot(tok::r_brace)) // dangling comma in getCells()
1270 const auto *NextNonComment = C.Tok->getNextNonComment(); in getCells()
1272 NextNonComment = NextNonComment->getNextNonComment(); in getCells()