Searched refs:PreviousLine (Results 1 – 5 of 5) sorted by relevance
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | AffectedRangeManager.cpp | 27 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 D | UnwrappedLineFormatter.cpp | 260 const auto *PreviousLine = I != AnnotatedLines.begin() ? I[-1] : nullptr; in tryFitMultipleLinesInOne() local 262 if (PreviousLine && TheLine->Last->is(tok::l_brace) && in tryFitMultipleLinesInOne() 266 const FormatToken *Tok = PreviousLine->First; in tryFitMultipleLinesInOne() 291 auto ShouldMergeShortFunctions = [this, &I, &NextLine, PreviousLine, in tryFitMultipleLinesInOne() 308 if (!PreviousLine) in tryFitMultipleLinesInOne() 435 if (PreviousLine && TheLine->First->is(tok::l_brace)) { in tryFitMultipleLinesInOne() 436 switch (PreviousLine->First->Tok.getKind()) { in tryFitMultipleLinesInOne() 439 if (PreviousLine->First->Next && in tryFitMultipleLinesInOne() 440 PreviousLine->First->Next->isOneOf(tok::objc_autoreleasepool, in tryFitMultipleLinesInOne() 458 if (PreviousLine && Style.BraceWrapping.SplitEmptyRecord && in tryFitMultipleLinesInOne() [all …]
|
| H A D | AffectedRangeManager.h | 55 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
|
| H A D | UnwrappedLineFormatter.h | 47 const AnnotatedLine *PreviousLine,
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 405 unsigned PreviousLine = 0; in getFormattedLines() local 419 if (Loc.getLine() != PreviousLine) { in getFormattedLines() 421 PreviousLine = Loc.getLine(); in getFormattedLines() 461 if (End.getLine() != PreviousLine) { in getFormattedLines() 463 PreviousLine = End.getLine(); in getFormattedLines()
|