Lines Matching refs:AnnotatedLines
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
953 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in deriveLocalStyle()
954 if (!AnnotatedLines[i]->First->Next) in deriveLocalStyle()
956 FormatToken *Tok = AnnotatedLines[i]->First->Next; in deriveLocalStyle()
967 Style.PointerAlignment = countVariableAlignments(AnnotatedLines) <= 0 in deriveLocalStyle()
971 Style.Standard = hasCpp03IncompatibleFormat(AnnotatedLines) in deriveLocalStyle()
993 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in analyze() argument
1002 AffectedRangeMgr.computeAffectedLines(AnnotatedLines.begin(), in analyze()
1003 AnnotatedLines.end()); in analyze()
1005 checkEmptyNamespace(AnnotatedLines); in analyze()
1007 for (auto &Line : AnnotatedLines) { in analyze()
1029 void checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) { in checkEmptyNamespace() argument
1030 for (unsigned i = 0, e = AnnotatedLines.size(); i != e; ++i) { in checkEmptyNamespace()
1031 auto &Line = *AnnotatedLines[i]; in checkEmptyNamespace()
1034 checkEmptyNamespace(AnnotatedLines, i, i); in checkEmptyNamespace()
1039 FormatToken *Tok = AnnotatedLines[Line]->First; in checkEmptyNamespace()
1051 bool checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in checkEmptyNamespace() argument
1053 unsigned InitLine = CurrentLine, End = AnnotatedLines.size(); in checkEmptyNamespace()
1058 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) { in checkEmptyNamespace()
1062 } else if (!AnnotatedLines[CurrentLine]->endsWith(tok::l_brace)) { in checkEmptyNamespace()
1066 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace)) in checkEmptyNamespace()
1069 if (AnnotatedLines[CurrentLine]->startsWith(tok::kw_namespace) || in checkEmptyNamespace()
1070 AnnotatedLines[CurrentLine]->startsWith(tok::kw_inline, in checkEmptyNamespace()
1072 if (!checkEmptyNamespace(AnnotatedLines, CurrentLine, NewLine)) in checkEmptyNamespace()
1078 if (containsOnlyComments(*AnnotatedLines[CurrentLine])) in checkEmptyNamespace()
1093 AnnotatedLines[InitLine]->First->Tok.getLocation(), in checkEmptyNamespace()
1094 AnnotatedLines[CurrentLine]->Last->Tok.getEndLoc()))) in checkEmptyNamespace()