Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h46 class AnnotatedLine {
48 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
87 Children.push_back(new AnnotatedLine(Child)); in addChildren()
101 ~AnnotatedLine() { in ~AnnotatedLine()
102 for (AnnotatedLine *Child : Children) in ~AnnotatedLine()
167 SmallVector<AnnotatedLine *, 0> Children;
206 AnnotatedLine(const AnnotatedLine &) = delete;
207 void operator=(const AnnotatedLine &) = delete;
222 void annotate(AnnotatedLine &Line);
238 bool mustBreakBefore(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()
37 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.cpp59 void nextLine(const AnnotatedLine &Line) { in nextLine()
188 const AnnotatedLine *Line, in getMatchingNamespaceToken()
205 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
224 const AnnotatedLine *Current = *Next; in getNextMergedLine()
253 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne()
630 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement()
719 AnnotatedLine &Line = **I; in tryMergeSimpleBlock()
920 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join()
1348 for (const AnnotatedLine *Line = in format()
1542 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 DDefinitionBlockSeparator.cpp23 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
33 SmallVectorImpl<AnnotatedLine *> &Lines, tooling::Replacements &Result, in separateBlocks()
45 auto LikelyDefinition = [&](const AnnotatedLine *Line, in separateBlocks()
82 AnnotatedLine *TargetLine; in separateBlocks()
84 AnnotatedLine *OpeningLine = nullptr; in separateBlocks()
160 AnnotatedLine *NextLine = Lines[OperateIndex + 1]; in separateBlocks()
H A DNamespaceEndCommentsFixer.cpp248 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken()
249 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken()
271 getNamespaceTokenText(const AnnotatedLine *Line, in getNamespaceTokenText()
272 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText()
282 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
290 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
308 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
H A DDefinitionBlockSeparator.h31 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
35 void separateBlocks(SmallVectorImpl<AnnotatedLine *> &Lines,
H A DUsingDeclarationsSorter.cpp95 const AnnotatedLine *Line;
98 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
213 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
219 for (const AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DTokenAnalyzer.cpp119 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
124 AnnotatedLines.push_back(new AnnotatedLine(Line)); in process()
137 for (AnnotatedLine *Line : AnnotatedLines) in process()
H A DQualifierAlignmentFixer.h50 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
55 void fixQualifierAlignment(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DContinuationIndenter.h31 class AnnotatedLine; variable
67 const AnnotatedLine *Line, bool DryRun);
464 const AnnotatedLine *Line;
H A DSortJavaScriptImports.cpp145 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
152 AnnotatedLine *FirstNonImportLine; in analyze()
364 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
366 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
369 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DObjCPropertyAttributeOrderFixer.cpp184 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
191 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DFormat.cpp2106 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2163 for (AnnotatedLine *Line : Lines) { in insertBraces()
2263 void removeSemi(SmallVectorImpl<AnnotatedLine *> &Lines, in removeSemi()
2318 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
2399 for (AnnotatedLine *Line : AnnotatedLines) in analyze()
2432 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat()
2451 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments()
2483 for (AnnotatedLine *Line : AnnotatedLines) { in deriveLocalStyle()
2548 for (AnnotatedLine *Line : Lines) { in insertTrailingCommas()
2618 void cleanupLine(AnnotatedLine *Line) { in cleanupLine()
[all …]
H A DObjCPropertyAttributeOrderFixer.h40 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnalyzer.h98 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DQualifierAlignmentFixer.cpp535 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
544 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens, in fixQualifierAlignment()
551 for (AnnotatedLine *Line : AnnotatedLines) { in fixQualifierAlignment()
H A DTokenAnnotator.cpp43 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement()
2709 AnnotatedLine &Line;
2731 AnnotatedLine &Line) in ExpressionParser()
3120 const AnnotatedLine &Line;
3127 SmallVectorImpl<AnnotatedLine *> &Lines) const { in setCommentLineLevels()
3128 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
3129 for (AnnotatedLine *Line : llvm::reverse(Lines)) { in setCommentLineLevels()
3239 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate()
3450 for (AnnotatedLine *ChildLine : Line.Children) in calculateFormattingInformation()
3666 AnnotatedLine &Line) const { in calculateUnbreakableTailLengths()
[all …]
H A DFormatToken.h272 class AnnotatedLine; variable
570 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp248 const AnnotatedLine *Line, in getInitialState()
H A DUnwrappedLineParser.cpp702 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()