Home
last modified time | relevance | path

Searched refs:PreviousLine (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DAffectedRangeManager.cpp27 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines() local
52 if (nonPPLineAffected(Line, PreviousLine, Lines)) in computeAffectedLines()
55 PreviousLine = Line; in computeAffectedLines()
102 AnnotatedLine *Line, const AnnotatedLine *PreviousLine, in nonPPLineAffected() argument
134 bool LineMoved = PreviousLine && PreviousLine->Affected && in nonPPLineAffected()
139 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
140 PreviousLine->Affected && PreviousLine->Last->is(tok::comment); in nonPPLineAffected()
H A DUnwrappedLineFormatter.cpp281 const auto *PreviousLine = I != AnnotatedLines.begin() ? I[-1] : nullptr; in tryFitMultipleLinesInOne() local
283 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne()
287 const FormatToken *Tok = PreviousLine->First; in tryFitMultipleLinesInOne()
312 auto ShouldMergeShortFunctions = [this, &I, &NextLine, PreviousLine, in tryFitMultipleLinesInOne()
329 if (!PreviousLine) in tryFitMultipleLinesInOne()
470 if (PreviousLine && TheLine->First->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
471 switch (PreviousLine->First->Tok.getKind()) { in tryFitMultipleLinesInOne()
474 if (PreviousLine->First->Next) { in tryFitMultipleLinesInOne()
476 PreviousLine->First->Next->Tok.getObjCKeywordID(); in tryFitMultipleLinesInOne()
496 if (PreviousLine && Style.BraceWrapping.SplitEmptyRecord && in tryFitMultipleLinesInOne()
[all …]
H A DAffectedRangeManager.h55 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
H A DUnwrappedLineFormatter.h47 const AnnotatedLine *PreviousLine,