Home | History | Annotate | Download | only in Format

Lines Matching refs:LineIndex

132     unsigned LineIndex, unsigned Offset, StringRef::size_type Length) const {
155 BreakableStringLiteral::getSplit(unsigned LineIndex, unsigned TailOffset,
161 void BreakableStringLiteral::insertBreak(unsigned LineIndex,
195 BreakableLineComment::getSplit(unsigned LineIndex, unsigned TailOffset,
201 void BreakableLineComment::insertBreak(unsigned LineIndex, unsigned TailOffset,
210 BreakableLineComment::replaceWhitespaceBefore(unsigned LineIndex,
286 unsigned LineIndex,
293 size_t EndOfPreviousLine = Lines[LineIndex - 1].size();
294 if (InPPDirective && Lines[LineIndex - 1].endswith("\\"))
299 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine);
305 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks);
307 StartOfLine = Lines[LineIndex].size();
310 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine);
311 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine);
314 LeadingWhitespace[LineIndex] =
315 Lines[LineIndex].begin() - Lines[LineIndex - 1].end();
324 StartOfLineColumn[LineIndex] = std::max<int>(0, StartOfLine + IndentDelta);
330 unsigned LineIndex, unsigned Offset, StringRef::size_type Length) const {
331 return getContentStartColumn(LineIndex, Offset) +
332 encoding::getCodePointCount(Lines[LineIndex].substr(Offset, Length),
335 (LineIndex + 1 == Lines.size() ? 2 : 0);
339 BreakableBlockComment::getSplit(unsigned LineIndex, unsigned TailOffset,
341 return getCommentSplit(Lines[LineIndex].substr(TailOffset),
342 getContentStartColumn(LineIndex, TailOffset),
346 void BreakableBlockComment::insertBreak(unsigned LineIndex, unsigned TailOffset,
349 StringRef Text = Lines[LineIndex].substr(TailOffset);
351 if (LineIndex + 1 == Lines.size() &&
367 BreakableBlockComment::replaceWhitespaceBefore(unsigned LineIndex,
369 if (LineIndex == 0)
372 if (Lines[LineIndex].empty()) {
373 if (LineIndex + 1 == Lines.size()) {
385 if (StartOfLineColumn[LineIndex] == 1) {
391 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() -
393 LeadingWhitespace[LineIndex];
394 assert(StartOfLineColumn[LineIndex] >= Prefix.size());
396 Tok, WhitespaceOffsetInToken, LeadingWhitespace[LineIndex], "", Prefix,
397 InPPDirective, 1, StartOfLineColumn[LineIndex] - Prefix.size());
401 BreakableBlockComment::getContentStartColumn(unsigned LineIndex,
406 return StartOfLineColumn[LineIndex];