Lines Matching refs:LineIndex
137 unsigned LineIndex, unsigned Offset, StringRef::size_type Length) const { in getLineLengthAfterSplit() argument
163 BreakableStringLiteral::getSplit(unsigned LineIndex, unsigned TailOffset, in getSplit() argument
170 void BreakableStringLiteral::insertBreak(unsigned LineIndex, in insertBreak() argument
219 BreakableLineComment::getSplit(unsigned LineIndex, unsigned TailOffset, in getSplit() argument
225 void BreakableLineComment::insertBreak(unsigned LineIndex, unsigned TailOffset, in insertBreak() argument
233 void BreakableLineComment::replaceWhitespace(unsigned LineIndex, in replaceWhitespace() argument
243 unsigned LineIndex, WhitespaceManager &Whitespaces) { in replaceWhitespaceBefore() argument
326 void BreakableBlockComment::adjustWhitespace(unsigned LineIndex, in adjustWhitespace() argument
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()
351 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine); in adjustWhitespace()
352 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
355 LeadingWhitespace[LineIndex] = in adjustWhitespace()
356 Lines[LineIndex].begin() - Lines[LineIndex - 1].end(); in adjustWhitespace()
359 StartOfLineColumn[LineIndex] = in adjustWhitespace()
367 unsigned LineIndex, unsigned Offset, StringRef::size_type Length) const { in getLineLengthAfterSplit() argument
368 unsigned ContentStartColumn = getContentStartColumn(LineIndex, Offset); in getLineLengthAfterSplit()
370 encoding::columnWidthWithTabs(Lines[LineIndex].substr(Offset, Length), in getLineLengthAfterSplit()
374 (LineIndex + 1 == Lines.size() ? 2 : 0); in getLineLengthAfterSplit()
378 BreakableBlockComment::getSplit(unsigned LineIndex, unsigned TailOffset, in getSplit() argument
380 return getCommentSplit(Lines[LineIndex].substr(TailOffset), in getSplit()
381 getContentStartColumn(LineIndex, TailOffset), in getSplit()
385 void BreakableBlockComment::insertBreak(unsigned LineIndex, unsigned TailOffset, in insertBreak() argument
388 StringRef Text = Lines[LineIndex].substr(TailOffset); in insertBreak()
390 if (LineIndex + 1 == Lines.size() && in insertBreak()
405 void BreakableBlockComment::replaceWhitespace(unsigned LineIndex, in replaceWhitespace() argument
408 StringRef Text = Lines[LineIndex].substr(TailOffset); in replaceWhitespace()
418 unsigned LineIndex, WhitespaceManager &Whitespaces) { in replaceWhitespaceBefore() argument
419 if (LineIndex == 0) in replaceWhitespaceBefore()
422 if (Lines[LineIndex].empty()) { in replaceWhitespaceBefore()
423 if (LineIndex + 1 == Lines.size()) { in replaceWhitespaceBefore()
435 if (StartOfLineColumn[LineIndex] == 1) { in replaceWhitespaceBefore()
441 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() - in replaceWhitespaceBefore()
443 LeadingWhitespace[LineIndex]; in replaceWhitespaceBefore()
445 Tok, WhitespaceOffsetInToken, LeadingWhitespace[LineIndex], "", Prefix, in replaceWhitespaceBefore()
447 StartOfLineColumn[LineIndex] - Prefix.size()); in replaceWhitespaceBefore()
451 BreakableBlockComment::getContentStartColumn(unsigned LineIndex, in getContentStartColumn() argument
456 return std::max(0, StartOfLineColumn[LineIndex]); in getContentStartColumn()