| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | TokenAnnotator.h | 49 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 D | AffectedRangeManager.h | 23 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 D | UnwrappedLineFormatter.h | 38 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 D | AffectedRangeManager.cpp | 23 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 D | UnwrappedLineFormatter.cpp | 23 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 D | NamespaceEndCommentsFixer.h | 30 getNamespaceToken(const AnnotatedLine *Line, 31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines); 39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | DefinitionBlockSeparator.cpp | 22 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 D | DefinitionBlockSeparator.h | 31 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, 35 void separateBlocks(SmallVectorImpl<AnnotatedLine *> &Lines,
|
| H A D | UsingDeclarationsSorter.cpp | 95 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 D | TokenAnalyzer.cpp | 116 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() 121 AnnotatedLines.push_back(new AnnotatedLine(Line)); in process() 134 for (AnnotatedLine *Line : AnnotatedLines) in process()
|
| H A D | QualifierAlignmentFixer.h | 59 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, 64 void fixQualifierAlignment(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | ContinuationIndenter.h | 26 class AnnotatedLine; variable 62 const AnnotatedLine *Line, bool DryRun); 464 const AnnotatedLine *Line;
|
| H A D | SortJavaScriptImports.cpp | 141 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 D | ObjCPropertyAttributeOrderFixer.cpp | 179 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 186 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
|
| H A D | Format.cpp | 2278 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 D | UsingDeclarationsSorter.h | 29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | TokenAnalyzer.h | 87 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
| H A D | QualifierAlignmentFixer.cpp | 554 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() 563 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens, in fixQualifierAlignment() 570 for (AnnotatedLine *Line : AnnotatedLines) { in fixQualifierAlignment()
|
| H A D | TokenAnnotator.cpp | 42 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 D | FormatToken.h | 302 class AnnotatedLine; variable 609 SmallVector<AnnotatedLine *, 1> Children;
|
| H A D | ContinuationIndenter.cpp | 256 const AnnotatedLine *Line, in getInitialState()
|
| H A D | UnwrappedLineParser.cpp | 705 AnnotatedLine Line(ParsedLine); in mightFitOnOneLine()
|