/netbsd/external/apache2/llvm/dist/clang/lib/Format/ |
H A D | TokenAnnotator.h | 37 class AnnotatedLine { 39 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function 64 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine() 72 ~AnnotatedLine() { in ~AnnotatedLine() 125 SmallVector<AnnotatedLine *, 0> Children; 151 AnnotatedLine(const AnnotatedLine &) = delete; 152 void operator=(const AnnotatedLine &) = delete; 167 void annotate(AnnotatedLine &Line); 168 void calculateFormattingInformation(AnnotatedLine &Line); 188 void printDebugInfo(const AnnotatedLine &Line); [all …]
|
H A D | AffectedRangeManager.cpp | 23 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() 36 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 D | AffectedRangeManager.h | 23 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 D | UnwrappedLineFormatter.cpp | 53 void nextLine(const AnnotatedLine &Line) { in nextLine() 73 void skipLine(const AnnotatedLine &Line) { in skipLine() 145 const AnnotatedLine *Line, in getMatchingNamespaceToken() 162 const AnnotatedLine *Line, in getMatchingNamespaceTokenText() 181 const AnnotatedLine *Current = *Next; in getNextMergedLine() 209 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne() 483 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement() 559 AnnotatedLine &Line = **I; in tryMergeSimpleBlock() 734 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join() 1130 for (const AnnotatedLine *Line = in format() [all …]
|
H A D | UnwrappedLineFormatter.h | 40 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines, 48 void formatFirstToken(const AnnotatedLine &Line, 49 const AnnotatedLine *PreviousLine, 50 const SmallVectorImpl<AnnotatedLine *> &Lines, 56 const AnnotatedLine *NextLine) const; 61 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
|
H A D | NamespaceEndCommentsFixer.h | 30 getNamespaceToken(const AnnotatedLine *Line, 31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines); 39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
H A D | NamespaceEndCommentsFixer.cpp | 171 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken() 172 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken() 190 getNamespaceTokenText(const AnnotatedLine *Line, in getNamespaceTokenText() 191 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText() 201 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 228 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
|
H A D | SortJavaScriptImports.cpp | 137 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 144 AnnotatedLine *FirstNonImportLine; in analyze() 348 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *> 350 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() 353 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
|
H A D | ContinuationIndenter.h | 30 class AnnotatedLine; variable 66 const AnnotatedLine *Line, bool DryRun); 454 const AnnotatedLine *Line;
|
H A D | UsingDeclarationsSorter.cpp | 68 const AnnotatedLine *Line; 71 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration() 185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
|
H A D | TokenAnalyzer.cpp | 82 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() 86 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
|
H A D | UsingDeclarationsSorter.h | 29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
H A D | Format.cpp | 1541 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1554 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral() 1629 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1674 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat() 1692 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments() 1761 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1774 for (AnnotatedLine *Line : Lines) { in insertTrailingCommas() 1823 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1843 void cleanupLine(AnnotatedLine *Line) { in cleanupLine() 1859 bool containsOnlyComments(const AnnotatedLine &Line) { in containsOnlyComments() [all …]
|
H A D | TokenAnalyzer.h | 89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
H A D | TokenAnnotator.cpp | 73 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() 2050 AnnotatedLine &Line; 2070 AnnotatedLine &Line) in ExpressionParser() 2267 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels() 2268 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels() 2303 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth() 2310 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate() 2595 unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line, in splitPenalty() 3511 bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, in mustBreakBefore() 3810 bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, in canBreakBefore() [all …]
|
H A D | FormatToken.h | 205 class AnnotatedLine; variable 436 SmallVector<AnnotatedLine *, 1> Children;
|
H A D | ContinuationIndenter.cpp | 237 const AnnotatedLine *Line, in getInitialState()
|