Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnnotator.h36 class AnnotatedLine {
38 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
60 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine()
68 ~AnnotatedLine() { in ~AnnotatedLine()
69 for (AnnotatedLine *Child : Children) in ~AnnotatedLine()
124 SmallVector<AnnotatedLine *, 0> Children;
150 AnnotatedLine(const AnnotatedLine &) = delete;
151 void operator=(const AnnotatedLine &) = delete;
166 void annotate(AnnotatedLine &Line) const;
182 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.cpp58 void nextLine(const AnnotatedLine &Line) { in nextLine()
174 const AnnotatedLine *Line, in getMatchingNamespaceToken()
191 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
210 const AnnotatedLine *Current = *Next; in getNextMergedLine()
239 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne()
604 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement()
690 AnnotatedLine &Line = **I; in tryMergeSimpleBlock()
874 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join()
1290 for (const AnnotatedLine *Line = in format()
1393 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()
158 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.cpp68 const AnnotatedLine *Line;
71 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
191 for (const AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DTokenAnalyzer.cpp118 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
123 AnnotatedLines.push_back(new AnnotatedLine(Line)); in process()
135 for (AnnotatedLine *Line : AnnotatedLines) in process()
H A DQualifierAlignmentFixer.h46 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
70 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DContinuationIndenter.h30 class AnnotatedLine; variable
66 const AnnotatedLine *Line, bool DryRun);
460 const AnnotatedLine *Line;
H A DSortJavaScriptImports.cpp144 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
151 AnnotatedLine *FirstNonImportLine; in analyze()
363 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
365 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
368 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DFormat.cpp1842 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1854 for (AnnotatedLine *Line : Lines) { in insertBraces()
1899 for (AnnotatedLine *Line : Lines) { in removeBraces()
1947 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
2028 for (AnnotatedLine *Line : AnnotatedLines) in analyze()
2061 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat()
2080 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments()
2112 for (AnnotatedLine *Line : AnnotatedLines) { in deriveLocalStyle()
2175 for (AnnotatedLine *Line : Lines) { in insertTrailingCommas()
2245 void cleanupLine(AnnotatedLine *Line) { in cleanupLine()
[all …]
H A DTokenAnalyzer.h97 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnnotator.cpp31 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement()
2402 AnnotatedLine &Line;
2422 AnnotatedLine &Line) in ExpressionParser()
2636 const AnnotatedLine &Line;
2643 SmallVectorImpl<AnnotatedLine *> &Lines) const { in setCommentLineLevels()
2644 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
2645 for (AnnotatedLine *Line : llvm::reverse(Lines)) { in setCommentLineLevels()
2678 void TokenAnnotator::annotate(AnnotatedLine &Line) const { in annotate()
2852 for (AnnotatedLine *ChildLine : Line.Children) in calculateFormattingInformation()
2977 AnnotatedLine &Line) const { in calculateUnbreakableTailLengths()
[all …]
H A DQualifierAlignmentFixer.cpp63 SmallVectorImpl<AnnotatedLine *> & /*AnnotatedLines*/, in analyze() argument
429 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
439 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DFormatToken.h223 class AnnotatedLine; variable
494 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp238 const AnnotatedLine *Line, in getInitialState()
H A DUnwrappedLineParser.cpp805 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()
/llvm-project-15.0.7/clang/unittests/Format/
H A DTestLexer.h79 AnnotatedLine Annotated(Line); in annotate()