Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DUnwrappedLineFormatter.cpp354 const AnnotatedLine *PreviousLine = nullptr; in format() local
396 if (PreviousLine && PreviousLine->Affected && !DryRun) { in format()
407 formatFirstToken(*TheLine.First, PreviousLine, TheLine.Level, Indent, in format()
449 if ((PreviousLine && PreviousLine->Affected) || in format()
451 formatFirstToken(*Tok, PreviousLine, TheLine.Level, LevelIndent, in format()
469 PreviousLine = *I; in format()
489 const AnnotatedLine *PreviousLine, in formatFirstToken() argument
506 if (!Style.KeepEmptyLinesAtTheStartOfBlocks && PreviousLine && in formatFirstToken()
507 PreviousLine->Last->is(tok::l_brace) && in formatFirstToken()
508 PreviousLine->First->isNot(tok::kw_namespace) && in formatFirstToken()
[all …]
DFormat.cpp1266 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines() local
1290 if (nonPPLineAffected(Line, PreviousLine)) in computeAffectedLines()
1293 PreviousLine = Line; in computeAffectedLines()
1302 const AnnotatedLine *PreviousLine) { in nonPPLineAffected() argument
1333 bool LineMoved = PreviousLine && PreviousLine->Affected && in nonPPLineAffected()
1338 Line->First->NewlinesBefore < 2 && PreviousLine && in nonPPLineAffected()
1339 PreviousLine->Affected && PreviousLine->Last->is(tok::comment); in nonPPLineAffected()
DUnwrappedLineFormatter.h92 const AnnotatedLine *PreviousLine, unsigned IndentLevel,