Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.cpp275 const auto *PreviousLine = I != AnnotatedLines.begin() ? I[-1] : nullptr; in tryFitMultipleLinesInOne() local
277 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne()
281 const FormatToken *Tok = PreviousLine->First; in tryFitMultipleLinesInOne()
306 auto ShouldMergeShortFunctions = [this, &I, &NextLine, PreviousLine, in tryFitMultipleLinesInOne()
323 if (!PreviousLine) in tryFitMultipleLinesInOne()
453 if (PreviousLine && TheLine->First->is(tok::l_brace)) { in tryFitMultipleLinesInOne()
454 switch (PreviousLine->First->Tok.getKind()) { in tryFitMultipleLinesInOne()
457 if (PreviousLine->First->Next) { in tryFitMultipleLinesInOne()
459 PreviousLine->First->Next->Tok.getObjCKeywordID(); in tryFitMultipleLinesInOne()
479 if (PreviousLine && Style.BraceWrapping.SplitEmptyRecord && in tryFitMultipleLinesInOne()
[all …]
H A DAffectedRangeManager.h55 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
H A DUnwrappedLineFormatter.h49 const AnnotatedLine *PreviousLine,
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DRawCommentList.cpp408 unsigned PreviousLine = 0; in getFormattedLines() local
422 if (Loc.getLine() != PreviousLine) { in getFormattedLines()
424 PreviousLine = Loc.getLine(); in getFormattedLines()
464 if (End.getLine() != PreviousLine) { in getFormattedLines()
466 PreviousLine = End.getLine(); in getFormattedLines()