Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DAffectedRangeManager.cpp28 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines() local
52 if (nonPPLineAffected(Line, PreviousLine, Lines)) in computeAffectedLines()
55 PreviousLine = Line; in computeAffectedLines()
103 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.cpp1032 const AnnotatedLine *PreviousLine = nullptr; in format() local
1050 PreviousLine && PreviousLine->startsWith(tok::r_brace); in format()
1110 StartsNewLine && ((PreviousLine && PreviousLine->Affected) || in format()
1114 formatFirstToken(TheLine, PreviousLine, Lines, in format()
1130 PreviousLine = &TheLine; in format()
1158 if (PreviousLine == nullptr && Line.Level > 0) in formatFirstToken()
1167 PreviousLine->Last->is(tok::l_brace) && in formatFirstToken()
1168 !PreviousLine->startsWithNamespace() && in formatFirstToken()
1169 !startsExternCBlock(*PreviousLine)) in formatFirstToken()
1173 if (PreviousLine && PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && in formatFirstToken()
[all …]
H A DAffectedRangeManager.h56 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
H A DUnwrappedLineFormatter.h52 const AnnotatedLine *PreviousLine,