Searched refs:AnnotatedLine (Results 1 – 13 of 13) sorted by relevance
/external/clang/lib/Format/ |
D | TokenAnnotator.h | 39 class AnnotatedLine { 41 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function 63 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine() 71 ~AnnotatedLine() { in ~AnnotatedLine() 109 SmallVector<AnnotatedLine *, 0> Children; 131 AnnotatedLine(const AnnotatedLine &) = delete; 132 void operator=(const AnnotatedLine &) = delete; 145 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines); 147 void annotate(AnnotatedLine &Line); 148 void calculateFormattingInformation(AnnotatedLine &Line); [all …]
|
D | AffectedRangeManager.h | 24 class AnnotatedLine; variable 35 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *>::iterator I, 36 SmallVectorImpl<AnnotatedLine *>::iterator E); 52 void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I, 53 SmallVectorImpl<AnnotatedLine *>::iterator E); 57 bool nonPPLineAffected(AnnotatedLine *Line, 58 const AnnotatedLine *PreviousLine);
|
D | UnwrappedLineFormatter.cpp | 21 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 …]
|
D | AffectedRangeManager.cpp | 24 SmallVectorImpl<AnnotatedLine *>::iterator I, in computeAffectedLines() 25 SmallVectorImpl<AnnotatedLine *>::iterator E) { in computeAffectedLines() 27 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines() 29 AnnotatedLine *Line = *I; in computeAffectedLines() 36 SmallVectorImpl<AnnotatedLine *>::iterator PPEnd = I + 1; in computeAffectedLines() 92 SmallVectorImpl<AnnotatedLine *>::iterator I, in markAllAsAffected() 93 SmallVectorImpl<AnnotatedLine *>::iterator E) { in markAllAsAffected() 102 AnnotatedLine *Line, const AnnotatedLine *PreviousLine) { in nonPPLineAffected()
|
D | UnwrappedLineFormatter.h | 42 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>,
|
D | ContinuationIndenter.h | 29 class AnnotatedLine; variable 48 LineState getInitialState(unsigned FirstIndent, const AnnotatedLine *Line, 355 const AnnotatedLine *Line;
|
D | SortJavaScriptImports.cpp | 129 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 136 AnnotatedLine *FirstNonImportLine; in analyze() 274 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine*> 276 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() 280 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
|
D | TokenAnalyzer.cpp | 101 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() 105 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
|
D | TokenAnnotator.cpp | 35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() 1337 AnnotatedLine &Line; 1357 AnnotatedLine &Line) in ExpressionParser() 1548 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels() 1549 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels() 1550 for (SmallVectorImpl<AnnotatedLine *>::reverse_iterator I = Lines.rbegin(), in setCommentLineLevels() 1563 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate() 1564 for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(), in annotate() 1591 const AnnotatedLine &Line) { in isFunctionDeclarationName() 1665 bool TokenAnnotator::mustBreakForReturnType(const AnnotatedLine &Line) const { in mustBreakForReturnType() [all …]
|
D | Format.cpp | 802 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 834 void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines, in requoteJSStringLiteral() 836 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral() 912 hasCpp03IncompatibleFormat(const SmallVectorImpl<AnnotatedLine *> &Lines) { in hasCpp03IncompatibleFormat() 913 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat() 929 int countVariableAlignments(const SmallVectorImpl<AnnotatedLine *> &Lines) { in countVariableAlignments() 931 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments() 950 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in deriveLocalStyle() 993 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1020 bool containsOnlyComments(const AnnotatedLine &Line) { in containsOnlyComments() [all …]
|
D | TokenAnalyzer.h | 89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
D | FormatToken.h | 109 class AnnotatedLine; variable 272 SmallVector<AnnotatedLine *, 1> Children;
|
D | ContinuationIndenter.cpp | 77 const AnnotatedLine *Line, in getInitialState()
|