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
217 BreakableLineComment::getSplit(unsigned LineIndex, unsigned TailOffset, in getSplit() argument
223 void BreakableLineComment::insertBreak(unsigned LineIndex, unsigned TailOffset, in insertBreak() argument
231 void BreakableLineComment::replaceWhitespace(unsigned LineIndex, in replaceWhitespace() argument
241 BreakableLineComment::replaceWhitespaceBefore(unsigned LineIndex, in replaceWhitespaceBefore() argument
319 void BreakableBlockComment::adjustWhitespace(unsigned LineIndex, in adjustWhitespace() argument
326 size_t EndOfPreviousLine = Lines[LineIndex - 1].size(); in adjustWhitespace()
327 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace()
332 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine); in adjustWhitespace()
338 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks); in adjustWhitespace()
340 StartOfLine = Lines[LineIndex].size(); in adjustWhitespace()
342 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine); in adjustWhitespace()
344 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine); in adjustWhitespace()
345 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
348 LeadingWhitespace[LineIndex] = in adjustWhitespace()
349 Lines[LineIndex].begin() - Lines[LineIndex - 1].end(); in adjustWhitespace()
352 StartOfLineColumn[LineIndex] = in adjustWhitespace()
360 unsigned LineIndex, unsigned Offset, StringRef::size_type Length) const { in getLineLengthAfterSplit() argument
361 unsigned ContentStartColumn = getContentStartColumn(LineIndex, Offset); in getLineLengthAfterSplit()
363 encoding::columnWidthWithTabs(Lines[LineIndex].substr(Offset, Length), in getLineLengthAfterSplit()
367 (LineIndex + 1 == Lines.size() ? 2 : 0); in getLineLengthAfterSplit()
371 BreakableBlockComment::getSplit(unsigned LineIndex, unsigned TailOffset, in getSplit() argument
373 return getCommentSplit(Lines[LineIndex].substr(TailOffset), in getSplit()
374 getContentStartColumn(LineIndex, TailOffset), in getSplit()
378 void BreakableBlockComment::insertBreak(unsigned LineIndex, unsigned TailOffset, in insertBreak() argument
381 StringRef Text = Lines[LineIndex].substr(TailOffset); in insertBreak()
383 if (LineIndex + 1 == Lines.size() && in insertBreak()
398 void BreakableBlockComment::replaceWhitespace(unsigned LineIndex, in replaceWhitespace() argument
401 StringRef Text = Lines[LineIndex].substr(TailOffset); in replaceWhitespace()
411 BreakableBlockComment::replaceWhitespaceBefore(unsigned LineIndex, in replaceWhitespaceBefore() argument
413 if (LineIndex == 0) in replaceWhitespaceBefore()
416 if (Lines[LineIndex].empty()) { in replaceWhitespaceBefore()
417 if (LineIndex + 1 == Lines.size()) { in replaceWhitespaceBefore()
429 if (StartOfLineColumn[LineIndex] == 1) { in replaceWhitespaceBefore()
435 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() - in replaceWhitespaceBefore()
437 LeadingWhitespace[LineIndex]; in replaceWhitespaceBefore()
439 Tok, WhitespaceOffsetInToken, LeadingWhitespace[LineIndex], "", Prefix, in replaceWhitespaceBefore()
441 StartOfLineColumn[LineIndex] - Prefix.size()); in replaceWhitespaceBefore()
445 BreakableBlockComment::getContentStartColumn(unsigned LineIndex, in getContentStartColumn() argument
450 return std::max(0, StartOfLineColumn[LineIndex]); in getContentStartColumn()