| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | TokenAnnotator.h | 38 class AnnotatedLine { 40 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() function 65 Children.push_back(new AnnotatedLine(Child)); in AnnotatedLine() 73 ~AnnotatedLine() { in ~AnnotatedLine() 118 SmallVector<AnnotatedLine *, 0> Children; 144 AnnotatedLine(const AnnotatedLine &) = delete; 145 void operator=(const AnnotatedLine &) = delete; 160 void annotate(AnnotatedLine &Line); 161 void calculateFormattingInformation(AnnotatedLine &Line); 179 void printDebugInfo(const AnnotatedLine &Line); [all …]
|
| H A D | AffectedRangeManager.h | 24 class AnnotatedLine; variable 35 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines); 51 void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I, 52 SmallVectorImpl<AnnotatedLine *>::iterator E); 56 bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine, 57 SmallVectorImpl<AnnotatedLine *> &Lines);
|
| H A D | AffectedRangeManager.cpp | 24 SmallVectorImpl<AnnotatedLine *> &Lines) { in computeAffectedLines() 25 SmallVectorImpl<AnnotatedLine *>::iterator I = Lines.begin(); in computeAffectedLines() 26 SmallVectorImpl<AnnotatedLine *>::iterator E = Lines.end(); in computeAffectedLines() 28 const AnnotatedLine *PreviousLine = nullptr; in computeAffectedLines() 30 AnnotatedLine *Line = *I; in computeAffectedLines() 37 SmallVectorImpl<AnnotatedLine *>::iterator PPEnd = I + 1; in computeAffectedLines() 93 SmallVectorImpl<AnnotatedLine *>::iterator I, in markAllAsAffected() 94 SmallVectorImpl<AnnotatedLine *>::iterator E) { in markAllAsAffected() 103 AnnotatedLine *Line, const AnnotatedLine *PreviousLine, in nonPPLineAffected() 104 SmallVectorImpl<AnnotatedLine *> &Lines) { in nonPPLineAffected()
|
| H A D | UnwrappedLineFormatter.cpp | 54 void nextLine(const AnnotatedLine &Line) { in nextLine() 72 void skipLine(const AnnotatedLine &Line) { in skipLine() 166 const AnnotatedLine *Current = *Next; in getNextMergedLine() 194 const AnnotatedLine *TheLine = *I; in tryFitMultipleLinesInOne() 409 AnnotatedLine &Line = **I; in tryMergeSimpleControlStatement() 478 AnnotatedLine &Line = **I; in tryMergeSimpleBlock() 639 void join(AnnotatedLine &A, const AnnotatedLine &B) { in join() 1033 const AnnotatedLine *NextLine = nullptr; in format() 1039 for (const AnnotatedLine *Line = in format() 1042 const AnnotatedLine &TheLine = *Line; in format() [all …]
|
| H A D | UnwrappedLineFormatter.h | 41 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines, 51 void formatFirstToken(const AnnotatedLine &Line, 52 const AnnotatedLine *PreviousLine, 53 const SmallVectorImpl<AnnotatedLine *> &Lines, 59 const AnnotatedLine *NextLine) const; 64 std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
|
| H A D | NamespaceEndCommentsFixer.h | 31 getNamespaceToken(const AnnotatedLine *Line, 32 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines); 40 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | NamespaceEndCommentsFixer.cpp | 113 getNamespaceToken(const AnnotatedLine *Line, in getNamespaceToken() 114 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken() 136 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 145 const AnnotatedLine *EndLine = AnnotatedLines[I]; in analyze()
|
| H A D | SortJavaScriptImports.cpp | 128 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 135 AnnotatedLine *FirstNonImportLine; in analyze() 279 std::pair<SmallVector<JsModuleReference, 16>, AnnotatedLine *> 281 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() 284 AnnotatedLine *FirstNonImportLine = nullptr; in parseModuleReferences()
|
| H A D | ContinuationIndenter.h | 31 class AnnotatedLine; variable 67 const AnnotatedLine *Line, bool DryRun); 425 const AnnotatedLine *Line;
|
| H A D | UsingDeclarationsSorter.cpp | 69 const AnnotatedLine *Line; 72 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration() 187 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze()
|
| H A D | TokenAnalyzer.cpp | 78 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() 82 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process()
|
| H A D | UsingDeclarationsSorter.h | 30 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | Format.cpp | 1081 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1092 void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines, in requoteJSStringLiteral() 1094 for (AnnotatedLine *Line : Lines) { in requoteJSStringLiteral() 1169 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1208 for (const AnnotatedLine *Line : Lines) { in hasCpp03IncompatibleFormat() 1226 for (const AnnotatedLine *Line : Lines) { in countVariableAlignments() 1245 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in deriveLocalStyle() 1288 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 1317 bool containsOnlyComments(const AnnotatedLine &Line) { in containsOnlyComments() 1504 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() [all …]
|
| H A D | TokenAnalyzer.h | 94 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | TokenAnnotator.cpp | 50 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() 1679 AnnotatedLine &Line; 1699 AnnotatedLine &Line) in ExpressionParser() 1896 SmallVectorImpl<AnnotatedLine *> &Lines) { in setCommentLineLevels() 1897 const AnnotatedLine *NextNonCommentLine = nullptr; in setCommentLineLevels() 1929 static unsigned maxNestingDepth(const AnnotatedLine &Line) { in maxNestingDepth() 1936 void TokenAnnotator::annotate(AnnotatedLine &Line) { in annotate() 2203 unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line, in splitPenalty() 2837 bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, in mustBreakBefore() 3084 bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, in canBreakBefore() [all …]
|
| H A D | FormatToken.h | 120 class AnnotatedLine; variable 297 SmallVector<AnnotatedLine *, 1> Children;
|
| H A D | ContinuationIndenter.cpp | 238 const AnnotatedLine *Line, in getInitialState()
|