Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h47 class AnnotatedLine {
49 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
88 Children.push_back(new AnnotatedLine(Child)); in addChildren()
102 ~AnnotatedLine() { in ~AnnotatedLine()
103 for (AnnotatedLine *Child : Children) in ~AnnotatedLine()
168 SmallVector<AnnotatedLine *, 0> Children;
207 AnnotatedLine(const AnnotatedLine &) = delete;
208 void operator=(const AnnotatedLine &) = delete;
224 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines) const;
226 void annotate(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.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 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()
187 const AnnotatedLine *Line, in getMatchingNamespaceToken()
188 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken()
198 StringRef getNamespaceTokenText(const AnnotatedLine *Line) { in getNamespaceTokenText()
204 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
205 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText()
214 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.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.h59 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
64 void fixQualifierAlignment(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DContinuationIndenter.h26 class AnnotatedLine; variable
62 const AnnotatedLine *Line, bool DryRun);
459 const AnnotatedLine *Line;
H A DSortJavaScriptImports.cpp143 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
150 AnnotatedLine *FirstNonImportLine; in analyze()
362 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *>
364 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences()
367 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
H A DFormat.cpp2130 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2139 void removeParens(SmallVectorImpl<AnnotatedLine *> &Lines, in removeParens()
2174 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2183 void insertBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in insertBraces()
2187 for (AnnotatedLine *Line : Lines) { in insertBraces()
2227 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2236 void removeBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in removeBraces()
2278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2288 SmallVectorImpl<AnnotatedLine *> &Lines, in removeSemi()
2338 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
[all …]
H A DUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DTokenAnalyzer.h87 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DQualifierAlignmentFixer.cpp537 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
546 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens, in fixQualifierAlignment()
553 for (AnnotatedLine *Line : AnnotatedLines) { in fixQualifierAlignment()
H A DTokenAnnotator.cpp43 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement()
125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
3108 AnnotatedLine &Line;
3134 AnnotatedLine &Line) in ExpressionParser()
3524 const AnnotatedLine &Line;
3531 SmallVectorImpl<AnnotatedLine *> &Lines) const { in setCommentLineLevels()
3532 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
3533 for (AnnotatedLine *Line : llvm::reverse(Lines)) { in setCommentLineLevels()
3562 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
3571 static FormatToken *getFunctionName(const AnnotatedLine &Line, in getFunctionName()
[all …]
H A DFormatToken.h294 class AnnotatedLine; variable
595 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp248 const AnnotatedLine *Line, in getInitialState()
H A DUnwrappedLineParser.cpp710 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()