Home | History | Annotate | Download | only in Format

Lines Matching refs:Lines

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