Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h49 class AnnotatedLine {
51 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
90 Children.push_back(new AnnotatedLine(Child)); in addChildren()
104 ~AnnotatedLine() { in ~AnnotatedLine()
105 for (AnnotatedLine *Child : Children) in ~AnnotatedLine()
175 SmallVector<AnnotatedLine *, 0> Children;
217 AnnotatedLine(const AnnotatedLine &) = delete;
218 void operator=(const AnnotatedLine &) = delete;
232 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines) const;
234 void annotate(AnnotatedLine &Line);
[all …]
H A DAffectedRangeManager.h23 class AnnotatedLine; variable
34 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines);
50 void markAllAsAffected(ArrayRef<AnnotatedLine *>::iterator I,
51 ArrayRef<AnnotatedLine *>::iterator E);
55 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
56 SmallVectorImpl<AnnotatedLine *> &Lines);
H A DUnwrappedLineFormatter.h38 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
46 void formatFirstToken(const AnnotatedLine &Line,
47 const AnnotatedLine *PreviousLine,
48 const AnnotatedLine *PrevPrevLine,
49 const SmallVectorImpl<AnnotatedLine *> &Lines,
55 const AnnotatedLine *NextLine) const;
60 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
H A DAffectedRangeManager.cpp23 SmallVectorImpl<AnnotatedLine *> &Lines) { in computeAffectedLines()
24 ArrayRef<AnnotatedLine *>::iterator I = Lines.begin(); in computeAffectedLines()
25 ArrayRef<AnnotatedLine *>::iterator E = Lines.end(); in computeAffectedLines()
27 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines()
29 AnnotatedLine *Line = *I; in computeAffectedLines()
92 ArrayRef<AnnotatedLine *>::iterator I, in markAllAsAffected()
93 ArrayRef<AnnotatedLine *>::iterator E) { in markAllAsAffected()
102 AnnotatedLine *Line, const AnnotatedLine *PreviousLine, in nonPPLineAffected()
103 SmallVectorImpl<AnnotatedLine *> &Lines) { in nonPPLineAffected()
H A DUnwrappedLineFormatter.cpp23 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock()
59 void nextLine(const AnnotatedLine &Line) { in nextLine()
97 void adjustToUnmodifiedLine(const AnnotatedLine &Line) { in adjustToUnmodifiedLine()
114 int getIndentOffset(const AnnotatedLine &Line) { in getIndentOffset()
167 getMatchingNamespaceToken(const AnnotatedLine *Line, in getMatchingNamespaceToken()
168 const ArrayRef<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken()
178 StringRef getNamespaceTokenText(const AnnotatedLine *Line) { in getNamespaceTokenText()
184 getMatchingNamespaceTokenText(const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
185 const ArrayRef<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText()
194 const SmallVectorImpl<AnnotatedLine *> &Lines) in LineJoiner()
[all …]
H A DNamespaceEndCommentsFixer.h30 getNamespaceToken(const AnnotatedLine *Line,
31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DDefinitionBlockSeparator.cpp22 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
32 SmallVectorImpl<AnnotatedLine *> &Lines, tooling::Replacements &Result, in separateBlocks()
44 auto LikelyDefinition = [&](const AnnotatedLine *Line, in separateBlocks()
81 AnnotatedLine *TargetLine; in separateBlocks()
83 AnnotatedLine *OpeningLine = nullptr; in separateBlocks()
163 AnnotatedLine *NextLine = Lines[OperateIndex + 1]; in separateBlocks()
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()
212 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
218 for (const AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DTokenAnalyzer.cpp116 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process()
121 AnnotatedLines.push_back(new AnnotatedLine(Line)); in process()
134 for (AnnotatedLine *Line : AnnotatedLines) in process()
H A DQualifierAlignmentFixer.h59 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
64 void fixQualifierAlignment(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DContinuationIndenter.h26 class AnnotatedLine; variable
62 const AnnotatedLine *Line, bool DryRun);
464 const AnnotatedLine *Line;
H A DSortJavaScriptImports.cpp141 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
148 AnnotatedLine *FirstNonImportLine; in analyze()
359 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
361 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
364 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DObjCPropertyAttributeOrderFixer.cpp179 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
186 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DFormat.cpp2278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2287 void removeParens(SmallVectorImpl<AnnotatedLine *> &Lines, in removeParens()
2311 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2320 void insertBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in insertBraces()
2324 for (AnnotatedLine *Line : Lines) { in insertBraces()
2365 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2374 void removeBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in removeBraces()
2406 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2416 SmallVectorImpl<AnnotatedLine *> &Lines, in removeSemi()
2458 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
[all …]
H A DUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnalyzer.h87 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DQualifierAlignmentFixer.cpp554 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
563 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens, in fixQualifierAlignment()
570 for (AnnotatedLine *Line : AnnotatedLines) { in fixQualifierAlignment()
H A DTokenAnnotator.cpp42 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement()
125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
3164 AnnotatedLine &Line;
3190 AnnotatedLine &Line) in ExpressionParser()
3588 const AnnotatedLine &Line;
3595 SmallVectorImpl<AnnotatedLine *> &Lines) const { in setCommentLineLevels()
3596 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
3597 for (AnnotatedLine *Line : reverse(Lines)) { in setCommentLineLevels()
3626 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
3635 static FormatToken *getFunctionName(const AnnotatedLine &Line, in getFunctionName()
[all …]
H A DFormatToken.h302 class AnnotatedLine; variable
609 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp256 const AnnotatedLine *Line, in getInitialState()
H A DUnwrappedLineParser.cpp705 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()