Home
last modified time | relevance | path

Searched refs:AnnotatedLines (Results 1 – 15 of 15) sorted by relevance

/freebsd-head/contrib/llvm-project/clang/lib/Format/
HDNamespaceEndCommentsFixer.cpp249 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceToken() argument
255 assert(StartLineIndex < AnnotatedLines.size()); in getNamespaceToken()
256 const FormatToken *NamespaceTok = AnnotatedLines[StartLineIndex]->First; in getNamespaceToken()
261 NamespaceTok = AnnotatedLines[StartLineIndex - 1]->First; in getNamespaceToken()
262 if (AnnotatedLines[StartLineIndex - 1]->endsWith(tok::semi)) in getNamespaceToken()
272 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getNamespaceTokenText() argument
273 const FormatToken *NamespaceTok = getNamespaceToken(Line, AnnotatedLines); in getNamespaceTokenText()
282 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
285 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
290 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
[all …]
HDTokenAnalyzer.cpp119 SmallVector<AnnotatedLine *, 16> AnnotatedLines; in process() local
120 AnnotatedLines.reserve(Lines.size()); in process()
124 AnnotatedLines.push_back(new AnnotatedLine(Line)); in process()
126 Annotator.annotate(*AnnotatedLines.back()); in process()
130 analyze(Annotator, AnnotatedLines, Lex); in process()
137 for (AnnotatedLine *Line : AnnotatedLines) in process()
HDNamespaceEndCommentsFixer.h31 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
39 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDFormat.cpp2130 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
2132 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
2134 removeParens(AnnotatedLines, Result); in analyze()
2174 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
2176 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
2178 insertBraces(AnnotatedLines, Result); in analyze()
2227 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
2229 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
2231 removeBraces(AnnotatedLines, Result); in analyze()
2278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
[all …]
HDObjCPropertyAttributeOrderFixer.cpp184 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
189 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
191 for (AnnotatedLine *Line : AnnotatedLines) { in analyze()
HDQualifierAlignmentFixer.h59 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
64 void fixQualifierAlignment(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDUnwrappedLineFormatter.cpp188 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceToken() argument
194 assert(StartLineIndex < AnnotatedLines.size()); in getMatchingNamespaceToken()
195 return AnnotatedLines[StartLineIndex]->First->getNamespaceToken(); in getMatchingNamespaceToken()
205 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in getMatchingNamespaceTokenText() argument
207 getMatchingNamespaceToken(Line, AnnotatedLines); in getMatchingNamespaceTokenText()
216 AnnotatedLines(Lines) {} in LineJoiner()
281 const auto *PreviousLine = I != AnnotatedLines.begin() ? I[-1] : nullptr; in tryFitMultipleLinesInOne()
335 for (auto J = I - 1; J >= AnnotatedLines.begin(); --J) { in tryFitMultipleLinesInOne()
380 auto *ClosingLine = AnnotatedLines.begin() + ClosingLineIndex + 1; in tryFitMultipleLinesInOne()
394 if (auto nsToken = getMatchingNamespaceToken(TheLine, AnnotatedLines)) { in tryFitMultipleLinesInOne()
[all …]
HDUsingDeclarationsSorter.cpp213 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
216 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
219 for (const AnnotatedLine *Line : AnnotatedLines) { in analyze()
HDDefinitionBlockSeparator.cpp23 TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
26 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
28 separateBlocks(AnnotatedLines, Result, Tokens); in analyze()
HDSortJavaScriptImports.cpp143 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
146 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
152 parseModuleReferences(Keywords, AnnotatedLines); in analyze()
364 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in parseModuleReferences() argument
370 for (auto *Line : AnnotatedLines) { in parseModuleReferences()
HDQualifierAlignmentFixer.cpp537 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
540 AffectedRangeMgr.computeAffectedLines(AnnotatedLines); in analyze()
541 fixQualifierAlignment(AnnotatedLines, Tokens, Fixes); in analyze()
546 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens, in fixQualifierAlignment() argument
553 for (AnnotatedLine *Line : AnnotatedLines) { in fixQualifierAlignment()
HDUsingDeclarationsSorter.h29 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDDefinitionBlockSeparator.h31 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDObjCPropertyAttributeOrderFixer.h40 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
HDTokenAnalyzer.h87 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,