Lines Matching refs:Content

188   StringRef Content = Token.TokenText.substr(2).ltrim();  in switchesFormatting()  local
189 return Content.startswith("clang-format on") || in switchesFormatting()
190 Content.startswith("clang-format off"); in switchesFormatting()
275 if (CommentPragmasRegex.match(Content[LineIndex])) in getSplit()
277 return getCommentSplit(Content[LineIndex].substr(TailOffset), in getSplit()
285 StringRef Text = Content[LineIndex].substr(TailOffset); in compressWhitespace()
302 static bool mayReflowContent(StringRef Content) { in mayReflowContent() argument
303 Content = Content.trim(Blanks); in mayReflowContent()
309 if (Content.startswith(Prefix)) { in mayReflowContent()
320 hasSpecialMeaningPrefix || kNumberedListRegexp->match(Content); in mayReflowContent()
325 return Content.size() >= 2 && !hasSpecialMeaningPrefix && in mayReflowContent()
326 !Content.endswith("\\") && in mayReflowContent()
329 (!isPunctuation(Content[0]) || !isPunctuation(Content[1])); in mayReflowContent()
347 Content.resize(Lines.size()); in BreakableBlockComment()
348 Content[0] = Lines[0]; in BreakableBlockComment()
365 if (Lines.size() >= 2 && Content[1].startswith("**") && in BreakableBlockComment()
381 if (i + 1 == e && Content[i].empty()) in BreakableBlockComment()
383 if (!Content[i].empty() && i + 1 != e && Decoration.startswith(Content[i])) in BreakableBlockComment()
385 while (!Content[i].startswith(Decoration)) in BreakableBlockComment()
392 if (Content[i].empty()) { in BreakableBlockComment()
414 unsigned DecorationSize = Decoration.startswith(Content[i]) in BreakableBlockComment()
415 ? Content[i].size() in BreakableBlockComment()
420 Content[i] = Content[i].substr(DecorationSize); in BreakableBlockComment()
421 if (!Decoration.startswith(Content[i])) in BreakableBlockComment()
450 llvm::dbgs() << i << " |" << Content[i] << "| " in BreakableBlockComment()
452 << "IN=" << (Content[i].data() - Lines[i].data()) << "\n"; in BreakableBlockComment()
483 Content[LineIndex - 1].data() - Lines[LineIndex - 1].data(); in adjustWhitespace()
484 Content[LineIndex - 1] = Lines[LineIndex - 1].substr( in adjustWhitespace()
486 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
499 encoding::columnWidthWithTabs(Content[LineIndex].substr(Offset, Length), in getRangeLength()
509 if (Content[LineIndex].substr(Offset, StringRef::npos).empty()) { in getRangeLength()
543 StringRef ContentWithNoDecoration = Content[LineIndex]; in getContentIndent()
558 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
595 size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks); in getReflowSplit()
614 StringRef TrimmedContent = Content[LineIndex].ltrim(Blanks); in reflow()
620 unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() + in reflow()
621 Content[LineIndex - 1].size() - in reflow()
651 if (Content[LineIndex].empty()) { in adaptStartOfLine()
671 unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() + in adaptStartOfLine()
672 Content[LineIndex - 1].size() - in adaptStartOfLine()
674 unsigned WhitespaceLength = Content[LineIndex].data() - in adaptStartOfLine()
688 StringRef Line = Content.back().substr(TailOffset); in getSplitAfterLastLine()
700 StringRef IndentContent = Content[LineIndex]; in mayReflow()
705 mayReflowContent(Content[LineIndex]) && !Tok.Finalized && in mayReflow()
726 Content.resize(Lines.size()); in BreakableLineCommentSection()
759 Content[i] = Lines[i].substr(IndentPrefix.size()); in BreakableLineCommentSection()
769 size_t EndOfLine = Content[i].find_last_not_of(Blanks); in BreakableLineCommentSection()
771 EndOfLine = Content[i].size(); in BreakableLineCommentSection()
774 Content[i] = Content[i].substr(0, EndOfLine); in BreakableLineCommentSection()
802 Content[LineIndex].substr(Offset, Length), StartColumn, Style.TabWidth, in getRangeLength()
816 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
839 size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks); in getReflowSplit()
888 Content[LineIndex].data() - Lines[LineIndex].data(); in reflow()
915 (Content[LineIndex].data() - Lines[LineIndex].data()) + in adaptStartOfLine()
951 StringRef IndentContent = Content[LineIndex]; in mayReflow()
962 mayReflowContent(Content[LineIndex]) && !Tok.Finalized && in mayReflow()