Lines Matching refs:Content

222   StringRef Content = Token.TokenText.substr(2).ltrim();  in switchesFormatting()  local
223 return Content.startswith("clang-format on") || in switchesFormatting()
224 Content.startswith("clang-format off"); in switchesFormatting()
309 if (CommentPragmasRegex.match(Content[LineIndex])) in getSplit()
311 return getCommentSplit(Content[LineIndex].substr(TailOffset), in getSplit()
319 StringRef Text = Content[LineIndex].substr(TailOffset); in compressWhitespace()
336 static bool mayReflowContent(StringRef Content) { in mayReflowContent() argument
337 Content = Content.trim(Blanks); in mayReflowContent()
343 if (Content.startswith(Prefix)) { in mayReflowContent()
354 hasSpecialMeaningPrefix || kNumberedListRegexp.match(Content); in mayReflowContent()
359 return Content.size() >= 2 && !hasSpecialMeaningPrefix && in mayReflowContent()
360 !Content.endswith("\\") && in mayReflowContent()
363 (!isPunctuation(Content[0]) || !isPunctuation(Content[1])); in mayReflowContent()
382 Content.resize(Lines.size()); in BreakableBlockComment()
383 Content[0] = Lines[0]; in BreakableBlockComment()
400 if (Lines.size() >= 2 && Content[1].startswith("**") && in BreakableBlockComment()
414 for (size_t i = 1, e = Content.size(); i < e && !Decoration.empty(); ++i) { in BreakableBlockComment()
415 const StringRef &Text = Content[i]; in BreakableBlockComment()
430 if (Content[i].empty()) { in BreakableBlockComment()
451 unsigned DecorationSize = Decoration.startswith(Content[i]) in BreakableBlockComment()
452 ? Content[i].size() in BreakableBlockComment()
456 Content[i] = Content[i].substr(DecorationSize); in BreakableBlockComment()
457 if (!Decoration.startswith(Content[i])) { in BreakableBlockComment()
486 llvm::dbgs() << i << " |" << Content[i] << "| " in BreakableBlockComment()
488 << "IN=" << (Content[i].data() - Lines[i].data()) << "\n"; in BreakableBlockComment()
497 if (CommentPragmasRegex.match(Content[LineIndex])) in getSplit()
499 return getCommentSplit(Content[LineIndex].substr(TailOffset), in getSplit()
530 Content[LineIndex - 1].data() - Lines[LineIndex - 1].data(); in adjustWhitespace()
531 Content[LineIndex - 1] = Lines[LineIndex - 1].substr( in adjustWhitespace()
533 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
546 Content[LineIndex].substr(Offset, Length), StartColumn, Style.TabWidth, in getRangeLength()
559 bool HasRemainingText = Offset < Content[LineIndex].size(); in getRemainingLength()
588 StringRef ContentWithNoDecoration = Content[LineIndex]; in getContentIndent()
603 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
638 size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks); in getReflowSplit()
658 StringRef TrimmedContent = Content[LineIndex].ltrim(Blanks); in reflow()
664 unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() + in reflow()
665 Content[LineIndex - 1].size() - in reflow()
696 if (Content[LineIndex].empty()) { in adaptStartOfLine()
714 unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() + in adaptStartOfLine()
715 Content[LineIndex - 1].size() - in adaptStartOfLine()
717 unsigned WhitespaceLength = Content[LineIndex].data() - in adaptStartOfLine()
731 StringRef Line = Content.back().substr(TailOffset); in getSplitAfterLastLine()
743 StringRef IndentContent = Content[LineIndex]; in mayReflow()
747 mayReflowContent(Content[LineIndex]) && !Tok.Finalized && in mayReflow()
771 Content.resize(Lines.size()); in BreakableLineCommentSection()
865 Content[i] = Lines[i].substr(IndentPrefix.size()); in BreakableLineCommentSection()
871 size_t EndOfLine = Content[i].find_last_not_of(Blanks); in BreakableLineCommentSection()
873 EndOfLine = Content[i].size(); in BreakableLineCommentSection()
876 Content[i] = Content[i].substr(0, EndOfLine); in BreakableLineCommentSection()
904 Content[LineIndex].substr(Offset, Length), StartColumn, Style.TabWidth, in getRangeLength()
917 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
934 size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks); in getReflowSplit()
982 Content[LineIndex].data() - Lines[LineIndex].data(); in reflow()
1008 (Content[LineIndex].data() - Lines[LineIndex].data()) + in adaptStartOfLine()
1042 StringRef IndentContent = Content[LineIndex]; in mayReflow()
1052 mayReflowContent(Content[LineIndex]) && !Tok.Finalized && in mayReflow()