Lines Matching defs:AnnotatedLines
2130 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2132 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2134 removeParens(AnnotatedLines, Result);
2174 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2176 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2178 insertBraces(AnnotatedLines, Result);
2227 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2229 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2231 removeBraces(AnnotatedLines, Result);
2278 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2280 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2282 removeSemi(Annotator, AnnotatedLines, Result);
2338 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2340 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2342 requoteJSStringLiteral(AnnotatedLines, Result);
2427 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2430 deriveLocalStyle(AnnotatedLines);
2431 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2432 for (AnnotatedLine *Line : AnnotatedLines)
2434 Annotator.setCommentLineLevels(AnnotatedLines);
2450 .format(AnnotatedLines, /*DryRun=*/false,
2513 deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
2516 for (AnnotatedLine *Line : AnnotatedLines) {
2530 const auto NetRightCount = countVariableAlignments(AnnotatedLines);
2538 Style.Standard = hasCpp03IncompatibleFormat(AnnotatedLines)
2568 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2570 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2572 insertTrailingCommas(AnnotatedLines, Result);
2631 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2640 AffectedRangeMgr.computeAffectedLines(AnnotatedLines);
2642 checkEmptyNamespace(AnnotatedLines);
2644 for (auto *Line : AnnotatedLines)
2674 void checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
2676 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) {
2677 auto &Line = *AnnotatedLines[i];
2679 checkEmptyNamespace(AnnotatedLines, i, i, DeletedLines);
2683 FormatToken *Tok = AnnotatedLines[Line]->First;
2695 bool checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2698 unsigned InitLine = CurrentLine, End = AnnotatedLines.size();
2703 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) {
2707 } else if (!AnnotatedLines[CurrentLine]->endsWith(tok::l_brace)) {
2711 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace))
2714 if (AnnotatedLines[CurrentLine]->startsWithNamespace()) {
2715 if (!checkEmptyNamespace(AnnotatedLines, CurrentLine, NewLine,
2723 if (containsOnlyComments(*AnnotatedLines[CurrentLine]))
2738 AnnotatedLines[InitLine]->First->Tok.getLocation(),
2739 AnnotatedLines[CurrentLine]->Last->Tok.getEndLoc()))) {
2852 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2855 IsObjC = guessIsObjC(Env.getSourceManager(), AnnotatedLines,
2866 const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
2947 for (auto *Line : AnnotatedLines) {