Home
last modified time | relevance | path

Searched refs:AnnotatedLine (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Format/
DTokenAnnotator.h39 class AnnotatedLine {
41 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
63 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine()
71 ~AnnotatedLine() { in ~AnnotatedLine()
101 SmallVector<AnnotatedLine *, 0> Children;
123 AnnotatedLine(const AnnotatedLine &) = delete;
124 void operator=(const AnnotatedLine &) = delete;
149 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines);
151 void annotate(AnnotatedLine &Line);
152 void calculateFormattingInformation(AnnotatedLine &Line);
[all …]
DUnwrappedLineFormatter.cpp21 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock()
52 void nextLine(const AnnotatedLine &Line) { in nextLine()
73 void adjustToUnmodifiedLine(const AnnotatedLine &Line) { in adjustToUnmodifiedLine()
132 const SmallVectorImpl<AnnotatedLine *> &Lines) in LineJoiner()
137 const AnnotatedLine *getNextMergedLine(bool DryRun, in getNextMergedLine()
141 const AnnotatedLine *Current = *Next; in getNextMergedLine()
162 SmallVectorImpl<AnnotatedLine *>::const_iterator I, in tryFitMultipleLinesInOne()
163 SmallVectorImpl<AnnotatedLine *>::const_iterator E) { in tryFitMultipleLinesInOne()
168 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne()
249 tryMergeSimplePPDirective(SmallVectorImpl<AnnotatedLine *>::const_iterator I, in tryMergeSimplePPDirective()
[all …]
DUnwrappedLineFormatter.h42 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
50 const AnnotatedLine *PreviousLine, unsigned IndentLevel,
56 const AnnotatedLine *NextLine) const;
61 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
DContinuationIndenter.h29 class AnnotatedLine; variable
47 LineState getInitialState(unsigned FirstIndent, const AnnotatedLine *Line,
354 const AnnotatedLine *Line;
DFormat.cpp1444 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in format()
1446 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in format()
1467 tooling::Replacements format(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in format()
1494 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *>::iterator I, in computeAffectedLines()
1495 SmallVectorImpl<AnnotatedLine *>::iterator E) { in computeAffectedLines()
1497 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines()
1499 AnnotatedLine *Line = *I; in computeAffectedLines()
1506 SmallVectorImpl<AnnotatedLine *>::iterator PPEnd = I + 1; in computeAffectedLines()
1532 bool nonPPLineAffected(AnnotatedLine *Line, in nonPPLineAffected()
1533 const AnnotatedLine *PreviousLine) { in nonPPLineAffected()
[all …]
DTokenAnnotator.cpp35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
1253 AnnotatedLine &Line;
1273 AnnotatedLine &Line) in ExpressionParser()
1458 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels()
1459 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
1460 for (SmallVectorImpl<AnnotatedLine *>::reverse_iterator I = Lines.rbegin(), in setCommentLineLevels()
1473 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate()
1474 for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(), in annotate()
1565 bool TokenAnnotator::mustBreakForReturnType(const AnnotatedLine &Line) const { in mustBreakForReturnType()
1588 void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) { in calculateFormattingInformation()
[all …]
DFormatToken.h108 class AnnotatedLine; variable
271 SmallVector<AnnotatedLine *, 1> Children;
DContinuationIndenter.cpp71 const AnnotatedLine *Line, in getInitialState()