Home
last modified time | relevance | path

Searched refs:MustBreakBefore (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/lib/Format/
H A DFormatToken.cpp144 if (Column == Format->Columns || State.NextToken->MustBreakBefore) { in formatAfterToken()
219 MustBreakBeforeItem.push_back(ItemBegin->MustBreakBefore); in precomputeFormattingInfos()
H A DUnwrappedLineFormatter.cpp243 if (NextLine.Type == LT_Invalid || NextLine.First->MustBreakBefore) in tryFitMultipleLinesInOne()
766 if (Tok->isNot(tok::r_brace) || Tok->MustBreakBefore) in tryMergeSimpleBlock()
862 if (I[1]->First->MustBreakBefore || I[2]->First->MustBreakBefore) in nextTwoLinesFitInto()
869 if (Tok->MustBreakBefore) in containsMustBreak()
986 if (Previous.Children[0]->First->MustBreakBefore) in formatChildren()
1075 State, /*Newline=*/State.NextToken->MustBreakBefore, DryRun); in formatLine()
H A DTokenAnnotator.cpp2706 Line.First->CanBreakBefore = Line.First->MustBreakBefore; in annotate()
2893 Parameter->MustBreakBefore = true; in calculateFormattingInformation()
2906 Current->MustBreakBefore = true; in calculateFormattingInformation()
2908 Current->MustBreakBefore = in calculateFormattingInformation()
2910 if (!Current->MustBreakBefore && InFunctionDecl && in calculateFormattingInformation()
2912 Current->MustBreakBefore = mustBreakForReturnType(Line); in calculateFormattingInformation()
2917 Current->MustBreakBefore || canBreakBefore(Line, *Current); in calculateFormattingInformation()
2924 if (Current->MustBreakBefore || Prev->Children.size() > 1 || in calculateFormattingInformation()
2926 Prev->Children[0]->First->MustBreakBefore) || in calculateFormattingInformation()
3004 CurrentToken->Next->MustBreakBefore = true; in calculateArrayInitializerColumnList()
[all …]
H A DContinuationIndenter.cpp290 if (!Current.MustBreakBefore && Previous.is(tok::l_brace) && in canBreak()
346 if (Current.MustBreakBefore || Current.is(TT_InlineASMColon)) in mustBreak()
767 P->MustBreakBefore || P->is(tok::lessless) || in addTokenOnCurrentLine()
1340 if (Tok.MustBreakBefore) in moveStateToNextToken()
1344 return Next && Next->MustBreakBefore; in moveStateToNextToken()
1686 if (Tok->MustBreakBefore || in moveStatePastScopeOpener()
H A DFormatToken.h230 MustBreakBefore(false), IsUnterminatedLiteral(false), in FormatToken()
270 unsigned MustBreakBefore : 1; member
H A DUnwrappedLineParser.cpp1923 Line->Tokens.begin()->Tok->MustBreakBefore = true; in parseStructuralElement()
4272 FormatTok->MustBreakBefore = true; in readToken()
4342 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()