Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DFormatToken.cpp124 if (Column == Format->Columns || State.NextToken->MustBreakBefore) { in formatAfterToken()
193 MustBreakBeforeItem.push_back(ItemBegin->MustBreakBefore); in precomputeFormattingInfos()
H A DUnwrappedLineFormatter.cpp214 if (I[1]->Type == LT_Invalid || I[1]->First->MustBreakBefore) in tryFitMultipleLinesInOne()
622 if (Tok->is(tok::r_brace) && !Tok->MustBreakBefore && in tryMergeSimpleBlock()
723 if (I[1]->First->MustBreakBefore || I[2]->First->MustBreakBefore) in nextTwoLinesFitInto()
730 if (Tok->MustBreakBefore) in containsMustBreak()
847 if (Previous.Children[0]->First->MustBreakBefore) in formatChildren()
935 State, /*Newline=*/State.NextToken->MustBreakBefore, DryRun); in formatLine()
H A DContinuationIndenter.cpp286 if (!Current.MustBreakBefore && Previous.is(tok::l_brace) && in canBreak()
337 if (Current.MustBreakBefore || Current.is(TT_InlineASMColon)) in mustBreak()
689 P->MustBreakBefore || P->is(tok::lessless) || in addTokenOnCurrentLine()
1200 ((Current.MustBreakBefore) || in moveStateToNextToken()
1202 Current.getNextNonComment()->MustBreakBefore))) in moveStateToNextToken()
1526 if (Tok->MustBreakBefore || in moveStatePastScopeOpener()
H A DTokenAnnotator.cpp2396 Line.First->CanBreakBefore = Line.First->MustBreakBefore; in annotate()
2579 Parameter->MustBreakBefore = true; in calculateFormattingInformation()
2589 Current->MustBreakBefore = in calculateFormattingInformation()
2590 Current->MustBreakBefore || mustBreakBefore(Line, *Current); in calculateFormattingInformation()
2592 if (!Current->MustBreakBefore && InFunctionDecl && in calculateFormattingInformation()
2594 Current->MustBreakBefore = mustBreakForReturnType(Line); in calculateFormattingInformation()
2597 Current->MustBreakBefore || canBreakBefore(Line, *Current); in calculateFormattingInformation()
2605 if (Current->MustBreakBefore || Prev->Children.size() > 1 || in calculateFormattingInformation()
2607 Prev->Children[0]->First->MustBreakBefore) || in calculateFormattingInformation()
2683 CurrentToken->Next->MustBreakBefore = true; in calculateArrayInitializerColumnList()
[all …]
H A DFormatToken.h213 MustBreakBefore(false), IsUnterminatedLiteral(false), in FormatToken()
252 unsigned MustBreakBefore : 1; member
H A DUnwrappedLineParser.cpp1516 Line->Tokens.begin()->Tok->MustBreakBefore = true; in parseStructuralElement()
1549 FormatTok->MustBreakBefore = true; in parseStructuralElement()
1861 FormatTok->MustBreakBefore = true; in parseBracedList()
3323 FormatTok->MustBreakBefore = true; in readToken()
3347 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()