Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h38 class AnnotatedLine {
40 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
65 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine()
73 ~AnnotatedLine() { in ~AnnotatedLine()
126 SmallVector<AnnotatedLine *, 0> Children;
152 AnnotatedLine(const AnnotatedLine &) = delete;
153 void operator=(const AnnotatedLine &) = delete;
168 void annotate(AnnotatedLine &Line);
169 void calculateFormattingInformation(AnnotatedLine &Line);
189 void printDebugInfo(const AnnotatedLine &Line);
[all …]
H A DAffectedRangeManager.h23 class AnnotatedLine; variable
34 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines);
50 void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I,
51 SmallVectorImpl<AnnotatedLine *>::iterator E);
55 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
56 SmallVectorImpl<AnnotatedLine *> &Lines);
H A DAffectedRangeManager.cpp23 SmallVectorImpl<AnnotatedLine *> &Lines) { in computeAffectedLines()
24 SmallVectorImpl<AnnotatedLine *>::iterator I = Lines.begin(); in computeAffectedLines()
25 SmallVectorImpl<AnnotatedLine *>::iterator E = Lines.end(); 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()
103 SmallVectorImpl<AnnotatedLine *> &Lines) { in nonPPLineAffected()
H A DUnwrappedLineFormatter.h40 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
48 void formatFirstToken(const AnnotatedLine &Line,
49 const AnnotatedLine *PreviousLine,
50 const AnnotatedLine *PrevPrevLine,
51 const SmallVectorImpl<AnnotatedLine *> &Lines,
57 const AnnotatedLine *NextLine) const;
62 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
H A DUnwrappedLineFormatter.cpp53 void nextLine(const AnnotatedLine &Line) { in nextLine()
147 const AnnotatedLine *Line, in getMatchingNamespaceToken()
164 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
183 const AnnotatedLine *Current = *Next; in getNextMergedLine()
211 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne()
485 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement()
561 AnnotatedLine &Line = **I; in tryMergeSimpleBlock()
736 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join()
1145 for (const AnnotatedLine *Line = in format()
1246 const AnnotatedLine &Line, const AnnotatedLine *PreviousLine, in formatFirstToken()
[all …]
H A DNamespaceEndCommentsFixer.h30 getNamespaceToken(const AnnotatedLine *Line,
31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DNamespaceEndCommentsFixer.cpp171 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken()
172 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken()
190 getNamespaceTokenText(const AnnotatedLine *Line, in getNamespaceTokenText()
191 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText()
201 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
228 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
H A DUsingDeclarationsSorter.cpp68 const AnnotatedLine *Line;
71 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
H A DContinuationIndenter.h30 class AnnotatedLine; variable
66 const AnnotatedLine *Line, bool DryRun);
454 const AnnotatedLine *Line;
H A DSortJavaScriptImports.cpp137 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
144 AnnotatedLine *FirstNonImportLine; in analyze()
353 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
355 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
358 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DTokenAnalyzer.cpp82 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
86 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
H A DUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnalyzer.h89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DFormat.cpp1588 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1601 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
1676 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1721 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat()
1739 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments()
1810 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1823 for (AnnotatedLine *Line : Lines) { in insertTrailingCommas()
1872 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1892 void cleanupLine(AnnotatedLine *Line) { in cleanupLine()
1908 bool containsOnlyComments(const AnnotatedLine &Line) { in containsOnlyComments()
[all …]
H A DTokenAnnotator.cpp73 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
2106 AnnotatedLine &Line;
2126 AnnotatedLine &Line) in ExpressionParser()
2323 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels()
2324 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
2359 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
2366 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate()
2711 unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line, in splitPenalty()
3607 bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, in mustBreakBefore()
3938 bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, in canBreakBefore()
[all …]
H A DFormatToken.h206 class AnnotatedLine; variable
446 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp237 const AnnotatedLine *Line, in getInitialState()