/external/llvm-project/clang/lib/Format/ |
D | NamespaceEndCommentsFixer.cpp | 174 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken() argument 180 assert(StartLineIndex < AnnotatedLines.size()); in getNamespaceToken() 181 const FormatToken *NamespaceTok = AnnotatedLines[StartLineIndex]->First; in getNamespaceToken() 186 NamespaceTok = AnnotatedLines[StartLineIndex - 1]->First; in getNamespaceToken() 193 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText() argument 194 const FormatToken *NamespaceTok = getNamespaceToken(Line, AnnotatedLines); in getNamespaceTokenText() 203 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 206 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze() 211 for (size_t I = 0, E = AnnotatedLines.size(); I != E; ++I) { in analyze() 212 FormatToken *Tok = AnnotatedLines[I]->First; in analyze() [all …]
|
D | TokenAnalyzer.cpp | 82 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() local 86 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process() 87 Annotator.annotate(*AnnotatedLines.back()); in process() 91 analyze(Annotator, AnnotatedLines, Lex); in process() 101 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in process() 102 delete AnnotatedLines[i]; in process()
|
D | UsingDeclarationsSorter.cpp | 185 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 188 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze() 191 for (size_t I = 0, E = AnnotatedLines.size(); I != E; ++I) { in analyze() 192 const auto *FirstTok = AnnotatedLines[I]->First; in analyze() 193 if (AnnotatedLines[I]->InPPDirective || in analyze() 194 !AnnotatedLines[I]->startsWith(tok::kw_using) || FirstTok->Finalized) { in analyze() 207 UsingDeclarations.push_back(UsingDeclaration(AnnotatedLines[I], Label)); in analyze()
|
D | Format.cpp | 1439 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 1441 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze() 1443 requoteJSStringLiteral(AnnotatedLines, Result); in analyze() 1527 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 1530 deriveLocalStyle(AnnotatedLines); in analyze() 1531 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze() 1532 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in analyze() 1533 Annotator.calculateFormattingInformation(*AnnotatedLines[i]); in analyze() 1535 Annotator.setCommentLineLevels(AnnotatedLines); in analyze() 1551 .format(AnnotatedLines, /*DryRun=*/false, in analyze() [all …]
|
D | NamespaceEndCommentsFixer.h | 31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines); 39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
D | SortJavaScriptImports.cpp | 127 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 130 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze() 136 parseModuleReferences(Keywords, AnnotatedLines); in analyze() 278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() argument 283 for (auto Line : AnnotatedLines) { in parseModuleReferences()
|
D | UnwrappedLineFormatter.cpp | 141 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken() argument 147 assert(StartLineIndex < AnnotatedLines.size()); in getMatchingNamespaceToken() 148 return AnnotatedLines[StartLineIndex]->First->getNamespaceToken(); in getMatchingNamespaceToken() 158 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText() argument 160 getMatchingNamespaceToken(Line, AnnotatedLines); in getMatchingNamespaceTokenText() 169 AnnotatedLines(Lines) {} in LineJoiner() 232 I != AnnotatedLines.begin()) { in tryFitMultipleLinesInOne() 279 if (auto nsToken = getMatchingNamespaceToken(TheLine, AnnotatedLines)) { in tryFitMultipleLinesInOne() 284 getMatchingNamespaceTokenText(I[i + 1], AnnotatedLines) && in tryFitMultipleLinesInOne() 347 if (TheLine->First->is(tok::l_brace) && I != AnnotatedLines.begin() && in tryFitMultipleLinesInOne() [all …]
|
D | UsingDeclarationsSorter.h | 29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
D | TokenAnalyzer.h | 89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|
/external/clang/lib/Format/ |
D | TokenAnalyzer.cpp | 101 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() local 105 AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i])); in process() 106 Annotator.annotate(*AnnotatedLines.back()); in process() 110 analyze(Annotator, AnnotatedLines, Tokens, Result); in process() 120 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in process() 121 delete AnnotatedLines[i]; in process()
|
D | Format.cpp | 802 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 804 deriveLocalStyle(AnnotatedLines); in analyze() 805 AffectedRangeMgr.computeAffectedLines(AnnotatedLines.begin(), in analyze() 806 AnnotatedLines.end()); in analyze() 810 requoteJSStringLiteral(AnnotatedLines, Result); in analyze() 812 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in analyze() 813 Annotator.calculateFormattingInformation(*AnnotatedLines[i]); in analyze() 816 Annotator.setCommentLineLevels(AnnotatedLines); in analyze() 826 .format(AnnotatedLines); in analyze() 950 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in deriveLocalStyle() argument [all …]
|
D | SortJavaScriptImports.cpp | 129 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument 131 AffectedRangeMgr.computeAffectedLines(AnnotatedLines.begin(), in analyze() 132 AnnotatedLines.end()); in analyze() 138 parseModuleReferences(Keywords, AnnotatedLines); in analyze() 276 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() argument 281 for (auto Line : AnnotatedLines) { in parseModuleReferences()
|
D | TokenAnalyzer.h | 89 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
|