Home | History | Annotate | Download | only in Format

Lines Matching refs:Lines

258   TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n");
261 LeadingWhitespace.resize(Lines.size());
262 StartOfLineColumn.resize(Lines.size());
264 for (size_t i = 1; i < Lines.size(); ++i)
268 if (Lines.size() == 1 && !FirstInLine) {
271 // lines with the first one.
276 for (size_t i = 1, e = Lines.size(); i < e && !Decoration.empty(); ++i) {
278 if (i + 1 == e && Lines[i].empty())
280 while (!Lines[i].startswith(Decoration))
286 for (size_t i = 1; i < Lines.size(); ++i) {
287 if (Lines[i].empty()) {
288 if (i + 1 == Lines.size()) {
294 // For all other lines, set the start column to 0 if they're empty, so
301 // For all other lines, adjust the line to exclude the star and
304 Lines[i] = Lines[i].substr(Decoration.size());
312 for (size_t i = 0; i < Lines.size(); ++i) {
313 llvm::dbgs() << i << " |" << Lines[i] << "| " << LeadingWhitespace[i]
326 size_t EndOfPreviousLine = Lines[LineIndex - 1].size();
327 if (InPPDirective && Lines[LineIndex - 1].endswith("\\"))
332 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine);
338 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks);
340 StartOfLine = Lines[LineIndex].size();
342 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine);
343 // Adjust Lines to only contain relevant text.
344 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine);
345 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine);
346 // Adjust LeadingWhitespace to account all whitespace between the lines
349 Lines[LineIndex].begin() - Lines[LineIndex - 1].end();
351 // Adjust the start column uniformly across all lines.
357 unsigned BreakableBlockComment::getLineCount() const { return Lines.size(); }
363 encoding::columnWidthWithTabs(Lines[LineIndex].substr(Offset, Length),
367 (LineIndex + 1 == Lines.size() ? 2 : 0);
373 return getCommentSplit(Lines[LineIndex].substr(TailOffset),
381 StringRef Text = Lines[LineIndex].substr(TailOffset);
383 if (LineIndex + 1 == Lines.size() &&
401 StringRef Text = Lines[LineIndex].substr(TailOffset);
416 if (Lines[LineIndex].empty()) {
417 if (LineIndex + 1 == Lines.size()) {
424 // For other empty lines, if we do have a decoration, adapt it to not
435 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() -