Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/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()
118 SmallVector<AnnotatedLine *, 0> Children;
144 AnnotatedLine(const AnnotatedLine &) = delete;
145 void operator=(const AnnotatedLine &) = delete;
160 void annotate(AnnotatedLine &Line);
161 void calculateFormattingInformation(AnnotatedLine &Line);
179 void printDebugInfo(const AnnotatedLine &Line);
[all …]
H A DAffectedRangeManager.h24 class AnnotatedLine; variable
35 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines);
51 void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I,
52 SmallVectorImpl<AnnotatedLine *>::iterator E);
56 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
57 SmallVectorImpl<AnnotatedLine *> &Lines);
H A DAffectedRangeManager.cpp24 SmallVectorImpl<AnnotatedLine *> &Lines) { in computeAffectedLines()
25 SmallVectorImpl<AnnotatedLine *>::iterator I = Lines.begin(); in computeAffectedLines()
26 SmallVectorImpl<AnnotatedLine *>::iterator E = Lines.end(); in computeAffectedLines()
28 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines()
30 AnnotatedLine *Line = *I; in computeAffectedLines()
37 SmallVectorImpl<AnnotatedLine *>::iterator PPEnd = I + 1; in computeAffectedLines()
93 SmallVectorImpl<AnnotatedLine *>::iterator I, in markAllAsAffected()
94 SmallVectorImpl<AnnotatedLine *>::iterator E) { in markAllAsAffected()
103 AnnotatedLine *Line, const AnnotatedLine *PreviousLine, in nonPPLineAffected()
104 SmallVectorImpl<AnnotatedLine *> &Lines) { in nonPPLineAffected()
H A DUnwrappedLineFormatter.cpp54 void nextLine(const AnnotatedLine &Line) { in nextLine()
72 void skipLine(const AnnotatedLine &Line) { in skipLine()
166 const AnnotatedLine *Current = *Next; in getNextMergedLine()
194 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne()
409 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement()
478 AnnotatedLine &Line = **I; in tryMergeSimpleBlock()
639 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join()
1033 const AnnotatedLine *NextLine = nullptr; in format()
1039 for (const AnnotatedLine *Line = in format()
1042 const AnnotatedLine &TheLine = *Line; in format()
[all …]
H A DUnwrappedLineFormatter.h41 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
51 void formatFirstToken(const AnnotatedLine &Line,
52 const AnnotatedLine *PreviousLine,
53 const SmallVectorImpl<AnnotatedLine *> &Lines,
59 const AnnotatedLine *NextLine) const;
64 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
H A DNamespaceEndCommentsFixer.h31 getNamespaceToken(const AnnotatedLine *Line,
32 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
40 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DNamespaceEndCommentsFixer.cpp113 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken()
114 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken()
136 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
145 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
H A DSortJavaScriptImports.cpp128 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
135 AnnotatedLine *FirstNonImportLine; in analyze()
279 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
281 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
284 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DContinuationIndenter.h31 class AnnotatedLine; variable
67 const AnnotatedLine *Line, bool DryRun);
425 const AnnotatedLine *Line;
H A DUsingDeclarationsSorter.cpp69 const AnnotatedLine *Line;
72 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
187 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
H A DTokenAnalyzer.cpp78 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
82 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
H A DUsingDeclarationsSorter.h30 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DFormat.cpp1081 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1092 void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines, in requoteJSStringLiteral()
1094 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
1169 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1208 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat()
1226 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments()
1245 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in deriveLocalStyle()
1288 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1317 bool containsOnlyComments(const AnnotatedLine &Line) { in containsOnlyComments()
1504 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
[all …]
H A DTokenAnalyzer.h94 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnnotator.cpp50 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
1679 AnnotatedLine &Line;
1699 AnnotatedLine &Line) in ExpressionParser()
1896 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels()
1897 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
1929 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
1936 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate()
2203 unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line, in splitPenalty()
2837 bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, in mustBreakBefore()
3084 bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, in canBreakBefore()
[all …]
H A DFormatToken.h120 class AnnotatedLine; variable
297 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp238 const AnnotatedLine *Line, in getInitialState()