Lines Matching refs:AnnotatedLine
21 bool startsExternCBlock(const AnnotatedLine &Line) {
30 /// \c nextLine must be called for each \c AnnotatedLine, after which \c
52 void nextLine(const AnnotatedLine &Line) {
73 void adjustToUnmodifiedLine(const AnnotatedLine &Line) {
132 const SmallVectorImpl<AnnotatedLine *> &Lines)
137 const AnnotatedLine *getNextMergedLine(bool DryRun,
141 const AnnotatedLine *Current = *Next;
162 SmallVectorImpl<AnnotatedLine *>::const_iterator I,
163 SmallVectorImpl<AnnotatedLine *>::const_iterator E) {
168 const AnnotatedLine *TheLine = *I;
249 tryMergeSimplePPDirective(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
250 SmallVectorImpl<AnnotatedLine *>::const_iterator E,
262 SmallVectorImpl<AnnotatedLine *>::const_iterator I,
263 SmallVectorImpl<AnnotatedLine *>::const_iterator E, unsigned Limit) {
273 AnnotatedLine &Line = **I;
289 tryMergeShortCaseLabels(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
290 SmallVectorImpl<AnnotatedLine *>::const_iterator E,
301 const AnnotatedLine *Line = I[1 + NumStmts];
318 tryMergeSimpleBlock(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
319 SmallVectorImpl<AnnotatedLine *>::const_iterator E,
321 AnnotatedLine &Line = **I;
406 limitConsideringMacros(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
407 SmallVectorImpl<AnnotatedLine *>::const_iterator E,
416 bool nextTwoLinesFitInto(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
423 bool containsMustBreak(const AnnotatedLine *Line) {
431 void join(AnnotatedLine &A, const AnnotatedLine &B) {
448 const SmallVectorImpl<AnnotatedLine *>::const_iterator End;
450 SmallVectorImpl<AnnotatedLine *>::const_iterator Next;
456 for (AnnotatedLine *Child : Tok->Children)
472 /// \brief Base class for classes that format one \c AnnotatedLine.
482 /// \brief Formats an \c AnnotatedLine and returns the penalty.
485 virtual unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
582 unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
608 unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
631 unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
797 UnwrappedLineFormatter::format(const SmallVectorImpl<AnnotatedLine *> &Lines,
803 std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned> CacheKey(
813 const AnnotatedLine *PreviousLine = nullptr;
814 const AnnotatedLine *NextLine = nullptr;
819 for (const AnnotatedLine *Line =
822 const AnnotatedLine &TheLine = *Line;
869 // unless the current \c AnnotatedLine is not at the beginning of a line.
903 const AnnotatedLine *PreviousLine,
949 const AnnotatedLine *NextLine) const {