Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Format/
H A DFormatToken.cpp145 if (Column == Format->Columns || State.NextToken->MustBreakBefore) { in formatAfterToken()
220 MustBreakBeforeItem.push_back(ItemBegin->MustBreakBefore); in precomputeFormattingInfos()
H A DUnwrappedLineFormatter.cpp250 if (NextLine.Type == LT_Invalid || NextLine.First->MustBreakBefore) in tryFitMultipleLinesInOne()
788 if (Tok->isNot(tok::r_brace) || Tok->MustBreakBefore) in tryMergeSimpleBlock()
884 if (I[1]->First->MustBreakBefore || I[2]->First->MustBreakBefore) in nextTwoLinesFitInto()
891 if (Tok->MustBreakBefore) in containsMustBreak()
1008 if (Previous.Children[0]->First->MustBreakBefore) in formatChildren()
1097 State, /*Newline=*/State.NextToken->MustBreakBefore, DryRun); in formatLine()
H A DTokenAnnotator.cpp2787 Line.First->CanBreakBefore = Line.First->MustBreakBefore; in annotate()
2969 AfterLastAttribute->MustBreakBefore = true; in calculateFormattingInformation()
3003 Parameter->MustBreakBefore = true; in calculateFormattingInformation()
3016 Current->MustBreakBefore = true; in calculateFormattingInformation()
3018 Current->MustBreakBefore = in calculateFormattingInformation()
3019 Current->MustBreakBefore || mustBreakBefore(Line, *Current); in calculateFormattingInformation()
3020 if (!Current->MustBreakBefore && InFunctionDecl && in calculateFormattingInformation()
3022 Current->MustBreakBefore = mustBreakForReturnType(Line); in calculateFormattingInformation()
3027 Current->MustBreakBefore || canBreakBefore(Line, *Current); in calculateFormattingInformation()
3034 if (Current->MustBreakBefore || Prev->Children.size() > 1 || in calculateFormattingInformation()
[all …]
H A DContinuationIndenter.cpp291 if (!Current.MustBreakBefore && Previous.is(tok::l_brace) && in canBreak()
356 if (Current.MustBreakBefore || in mustBreak()
783 P->MustBreakBefore || P->is(tok::lessless) || in addTokenOnCurrentLine()
1363 if (Tok.MustBreakBefore) in moveStateToNextToken()
1367 return Next && Next->MustBreakBefore; in moveStateToNextToken()
1721 if (Tok->MustBreakBefore || in moveStatePastScopeOpener()
H A DFormatToken.h249 MustBreakBefore(false), IsUnterminatedLiteral(false), in FormatToken()
290 unsigned MustBreakBefore : 1; member
H A DUnwrappedLineParser.cpp2061 Line->Tokens.begin()->Tok->MustBreakBefore = true; in parseStructuralElement()
4601 FormatTok->MustBreakBefore = true; in readToken()
4671 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()