• Home
  • Raw
  • Download

Lines Matching full:lines

259   TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n");  in BreakableBlockComment()
262 LeadingWhitespace.resize(Lines.size()); in BreakableBlockComment()
263 StartOfLineColumn.resize(Lines.size()); in BreakableBlockComment()
265 for (size_t i = 1; i < Lines.size(); ++i) in BreakableBlockComment()
269 if (Lines.size() == 1 && !FirstInLine) { in BreakableBlockComment()
272 // lines with the first one. in BreakableBlockComment()
277 for (size_t i = 1, e = Lines.size(); i < e && !Decoration.empty(); ++i) { in BreakableBlockComment()
279 if (i + 1 == e && Lines[i].empty()) in BreakableBlockComment()
281 if (!Lines[i].empty() && i + 1 != e && Decoration.startswith(Lines[i])) in BreakableBlockComment()
283 while (!Lines[i].startswith(Decoration)) in BreakableBlockComment()
289 for (size_t i = 1; i < Lines.size(); ++i) { in BreakableBlockComment()
290 if (Lines[i].empty()) { in BreakableBlockComment()
291 if (i + 1 == Lines.size()) { in BreakableBlockComment()
297 // For all other lines, set the start column to 0 if they're empty, so in BreakableBlockComment()
305 // For all other lines, adjust the line to exclude the star and in BreakableBlockComment()
308 Decoration.startswith(Lines[i]) ? Lines[i].size() : Decoration.size(); in BreakableBlockComment()
310 Lines[i] = Lines[i].substr(DecorationSize); in BreakableBlockComment()
312 if (!Decoration.startswith(Lines[i])) in BreakableBlockComment()
319 for (size_t i = 0; i < Lines.size(); ++i) { in BreakableBlockComment()
320 llvm::dbgs() << i << " |" << Lines[i] << "| " << LeadingWhitespace[i] in BreakableBlockComment()
333 size_t EndOfPreviousLine = Lines[LineIndex - 1].size(); in adjustWhitespace()
334 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace()
339 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine); in adjustWhitespace()
345 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks); in adjustWhitespace()
347 StartOfLine = Lines[LineIndex].rtrim("\r\n").size(); in adjustWhitespace()
349 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine); in adjustWhitespace()
350 // Adjust Lines to only contain relevant text. in adjustWhitespace()
351 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine); in adjustWhitespace()
352 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
353 // Adjust LeadingWhitespace to account all whitespace between the lines in adjustWhitespace()
356 Lines[LineIndex].begin() - Lines[LineIndex - 1].end(); in adjustWhitespace()
358 // Adjust the start column uniformly across all lines. in adjustWhitespace()
364 unsigned BreakableBlockComment::getLineCount() const { return Lines.size(); } in getLineCount()
370 encoding::columnWidthWithTabs(Lines[LineIndex].substr(Offset, Length), in getLineLengthAfterSplit()
374 (LineIndex + 1 == Lines.size() ? 2 : 0); in getLineLengthAfterSplit()
380 return getCommentSplit(Lines[LineIndex].substr(TailOffset), in getSplit()
388 StringRef Text = Lines[LineIndex].substr(TailOffset); in insertBreak()
390 if (LineIndex + 1 == Lines.size() && in insertBreak()
408 StringRef Text = Lines[LineIndex].substr(TailOffset); in replaceWhitespace()
422 if (Lines[LineIndex].empty()) { in replaceWhitespaceBefore()
423 if (LineIndex + 1 == Lines.size()) { in replaceWhitespaceBefore()
430 // For other empty lines, if we do have a decoration, adapt it to not in replaceWhitespaceBefore()
441 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() - in replaceWhitespaceBefore()