Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Format/
H A DTokenAnnotator.h37 class AnnotatedLine {
39 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function
65 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine()
73 ~AnnotatedLine() { in ~AnnotatedLine()
74 for (AnnotatedLine *Child : Children) in ~AnnotatedLine()
129 SmallVector<AnnotatedLine *, 0> Children;
165 AnnotatedLine(const AnnotatedLine &) = delete;
166 void operator=(const AnnotatedLine &) = delete;
179 void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines) const;
181 void annotate(AnnotatedLine &Line) const;
[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.cpp22 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock()
58 void nextLine(const AnnotatedLine &Line) { in nextLine()
85 void skipLine(const AnnotatedLine &Line, bool UnknownIndent = false) { in skipLine()
95 void adjustToUnmodifiedLine(const AnnotatedLine &Line) { in adjustToUnmodifiedLine()
181 const AnnotatedLine *Line, in getMatchingNamespaceToken()
182 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken()
192 StringRef getNamespaceTokenText(const AnnotatedLine *Line) { in getNamespaceTokenText()
198 const AnnotatedLine *Line, in getMatchingNamespaceTokenText()
199 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText()
208 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.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.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.h46 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
70 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DContinuationIndenter.h31 class AnnotatedLine; variable
67 const AnnotatedLine *Line, bool DryRun);
461 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.cpp1978 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
1987 void insertBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in insertBraces()
1991 for (AnnotatedLine *Line : Lines) { in insertBraces()
2031 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2040 void removeBraces(SmallVectorImpl<AnnotatedLine *> &Lines, in removeBraces()
2082 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2091 void removeSemi(SmallVectorImpl<AnnotatedLine *> &Lines, in removeSemi()
2133 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
2144 void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines, in requoteJSStringLiteral()
2146 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral()
[all …]
H A DTokenAnalyzer.h98 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
H A DQualifierAlignmentFixer.cpp64 SmallVectorImpl<AnnotatedLine *> & /*AnnotatedLines*/, in analyze() argument
434 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
444 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
H A DTokenAnnotator.cpp31 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement()
113 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
2474 AnnotatedLine &Line;
2494 AnnotatedLine &Line) in ExpressionParser()
2714 const AnnotatedLine &Line;
2721 SmallVectorImpl<AnnotatedLine *> &Lines) const { in setCommentLineLevels()
2722 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels()
2723 for (AnnotatedLine *Line : llvm::reverse(Lines)) { in setCommentLineLevels()
2752 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth()
2759 void TokenAnnotator::annotate(AnnotatedLine &Line) const { in annotate()
[all …]
H A DFormatToken.h242 class AnnotatedLine; variable
520 SmallVector<AnnotatedLine *, 1> Children;
H A DContinuationIndenter.cpp239 const AnnotatedLine *Line, in getInitialState()
H A DUnwrappedLineParser.cpp826 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()