Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp345 const auto *FirstNonComment = TheLine->getFirstNonComment(); in tryFitMultipleLinesInOne() local
346 if (!FirstNonComment) in tryFitMultipleLinesInOne()
417 if (TheLine->Last->is(tok::l_brace) && FirstNonComment != TheLine->Last && in tryFitMultipleLinesInOne()
418 (FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne()
H A DTokenAnnotator.cpp3968 const auto *FirstNonComment = Line.getFirstNonComment(); in calculateFormattingInformation() local
3974 for (auto *Tok = FirstNonComment && FirstNonComment->isNot(tok::kw_using) in calculateFormattingInformation()
3975 ? FirstNonComment->Next in calculateFormattingInformation()
4001 (FirstNonComment && FirstNonComment->is(TT_CtorDtorDeclName))) && in calculateFormattingInformation()
4023 for (const auto *Tok = FirstNonComment; Tok; Tok = Tok->Next) { in calculateFormattingInformation()
5911 auto *FirstNonComment = Line.getFirstNonComment(); in mustBreakBefore() local
5913 FirstNonComment && (FirstNonComment->is(Keywords.kw_internal) || in mustBreakBefore()
5914 FirstNonComment->isAccessSpecifierKeyword()); in mustBreakBefore()
5922 if (AccessSpecifier && FirstNonComment->Next && in mustBreakBefore()
5923 FirstNonComment->Next->is(tok::kw_enum)) { in mustBreakBefore()
[all …]