Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp362 const auto *FirstNonComment = TheLine->getFirstNonComment(); in tryFitMultipleLinesInOne() local
363 if (!FirstNonComment) in tryFitMultipleLinesInOne()
425 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
426 FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne()
H A DTokenAnnotator.cpp5249 auto *FirstNonComment = Line.getFirstNonComment(); in mustBreakBefore() local
5251 FirstNonComment && in mustBreakBefore()
5252 FirstNonComment->isOneOf(Keywords.kw_internal, tok::kw_public, in mustBreakBefore()
5261 if (AccessSpecifier && FirstNonComment->Next && in mustBreakBefore()
5262 FirstNonComment->Next->is(tok::kw_enum)) { in mustBreakBefore()
5269 ((AccessSpecifier && FirstNonComment->Next && in mustBreakBefore()
5270 FirstNonComment->Next->is(Keywords.kw_interface)) || in mustBreakBefore()