Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
HDTokenAnnotator.h37 class AnnotatedLine {
39 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
64 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine()
72 ~AnnotatedLine() { in ~AnnotatedLine()
125 SmallVector<AnnotatedLine *, 0> Children;
151 AnnotatedLine(const AnnotatedLine &) = delete;
152 void operator=(const AnnotatedLine &) = delete;
165 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines);
167 void annotate(AnnotatedLine &Line);
168 void calculateFormattingInformation(AnnotatedLine &Line);
[all …]
HDUnwrappedLineFormatter.cpp22 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock()
53 void nextLine(const AnnotatedLine &Line) { in nextLine()
71 void skipLine(const AnnotatedLine &Line) { in skipLine()
81 void adjustToUnmodifiedLine(const AnnotatedLine &Line) { in adjustToUnmodifiedLine()
138 const AnnotatedLine *Line, in getMatchingNamespaceToken()
139 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken()
149 StringRef getNamespaceTokenText(const AnnotatedLine *Line) { in getNamespaceTokenText()
155 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
156 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText()
165 const SmallVectorImpl<AnnotatedLine *> &Lines) in LineJoiner()
[all …]
HDAffectedRangeManager.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()
HDAffectedRangeManager.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);
HDUnwrappedLineFormatter.h40 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
48 void formatFirstToken(const AnnotatedLine &Line,
49 const AnnotatedLine *PreviousLine,
50 const SmallVectorImpl<AnnotatedLine *> &Lines,
56 const AnnotatedLine *NextLine) const;
61 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
HDNamespaceEndCommentsFixer.h30 getNamespaceToken(const AnnotatedLine *Line,
31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDNamespaceEndCommentsFixer.cpp155 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken()
156 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken()
174 getNamespaceTokenText(const AnnotatedLine *Line, in getNamespaceTokenText()
175 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText()
185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
195 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
HDSortJavaScriptImports.cpp127 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
134 AnnotatedLine *FirstNonImportLine; in analyze()
276 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
281 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
HDContinuationIndenter.h30 class AnnotatedLine; variable
66 const AnnotatedLine *Line, bool DryRun);
424 const AnnotatedLine *Line;
HDUsingDeclarationsSorter.cpp68 const AnnotatedLine *Line;
71 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
HDTokenAnalyzer.cpp77 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
81 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
HDUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDFormat.cpp1263 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1274 void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines, in requoteJSStringLiteral()
1276 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
1351 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1395 hasCpp03IncompatibleFormat(const SmallVectorImpl<AnnotatedLine *> &Lines) { in hasCpp03IncompatibleFormat()
1396 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat()
1412 int countVariableAlignments(const SmallVectorImpl<AnnotatedLine *> &Lines) { in countVariableAlignments()
1414 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments()
1433 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in deriveLocalStyle()
1476 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
[all …]
HDTokenAnalyzer.h89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDTokenAnnotator.cpp66 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
1858 AnnotatedLine &Line;
1878 AnnotatedLine &Line) in ExpressionParser()
2075 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels()
2076 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
2077 for (SmallVectorImpl<AnnotatedLine *>::reverse_iterator I = Lines.rbegin(), in setCommentLineLevels()
2111 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
2118 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate()
2119 for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(), in annotate()
2154 const AnnotatedLine &Line) { in isFunctionDeclarationName()
[all …]
HDFormatToken.h127 class AnnotatedLine; variable
304 SmallVector<AnnotatedLine *, 1> Children;
HDContinuationIndenter.cpp237 const AnnotatedLine *Line, in getInitialState()