• Home
  • Raw
  • Download

Lines Matching +full:lines +full:- +full:and +full:- +full:columns

1 //===--- BreakableToken.h - Format C++ code -------------------------------===//
8 //===----------------------------------------------------------------------===//
11 /// \brief Declares BreakableToken, BreakableStringLiteral, and
12 /// BreakableBlockComment classes, that contain token type-specific logic to
13 /// break long lines in tokens.
15 //===----------------------------------------------------------------------===//
36 /// \brief Contains starting character index and length of split.
41 /// \brief Returns the number of lines in this token in the original code.
44 /// \brief Returns the number of columns required to format the piece of line
70 /// \brief Replaces the whitespace between \p LineIndex-1 and \p LineIndex.
110 // The token text excluding the prefix and postfix.
183 // Rearranges the whitespace between Lines[LineIndex-1] and Lines[LineIndex],
184 // so that all whitespace between the lines is accounted to Lines[LineIndex]
186 // - Lines[LineIndex] points to the text after that whitespace
187 // - Lines[LineIndex-1] shrinks by its trailing whitespace
188 // - LeadingWhitespace[LineIndex] is updated with the complete whitespace
189 // between the end of the text of Lines[LineIndex-1] and Lines[LineIndex]
192 // Lines[LineIndex] starts (note that the decoration, if present, is not
201 // Contains the text of the lines of the block comment, excluding the leading
202 // /* in the first line and trailing */ in the last line, and excluding all
203 // trailing whitespace between the lines. Note that the decoration (if
205 SmallVector<StringRef, 16> Lines; variable
208 // front of Lines[i]. Note that this can include "* " sequences, which we
209 // regard as whitespace when all lines have a "*" prefix.
213 // Note that this excludes a leading "* " or "*" in case all lines have
215 // The first line's target column is always positive. The remaining lines'
216 // target columns are relative to the first line to allow correct indentation
224 // IndentAtLineBreak is a uniform position for all lines in a block comment,
234 // This is to distinguish between the case when the last line was empty and
238 // Either "* " if all lines begin with a "*", or empty.