Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp352 const FormatToken *FirstNonComment = TheLine->First; in tryFitMultipleLinesInOne() local
353 if (FirstNonComment->is(tok::comment)) { in tryFitMultipleLinesInOne()
354 FirstNonComment = FirstNonComment->getNextNonComment(); in tryFitMultipleLinesInOne()
355 if (!FirstNonComment) in tryFitMultipleLinesInOne()
400 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
401 FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne()
H A DTokenAnnotator.cpp4414 auto FirstNonComment = getFirstNonComment(Line); in mustBreakBefore() local
4416 FirstNonComment && in mustBreakBefore()
4417 FirstNonComment->isOneOf(Keywords.kw_internal, tok::kw_public, in mustBreakBefore()
4426 if (AccessSpecifier && FirstNonComment->Next && in mustBreakBefore()
4427 FirstNonComment->Next->is(tok::kw_enum)) { in mustBreakBefore()
4434 ((AccessSpecifier && FirstNonComment->Next && in mustBreakBefore()
4435 FirstNonComment->Next->is(Keywords.kw_interface)) || in mustBreakBefore()