Lines Matching full:split

67 static BreakableToken::Split
72 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit()
76 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
122 // Do not split before a number followed by a dot: this would be interpreted in getCommentSplit()
146 // If the comment is only whitespace, we cannot split. in getCommentSplit()
147 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
158 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
164 return BreakableToken::Split(BeforeCut.size(), in getCommentSplit()
167 return BreakableToken::Split(StringRef::npos, 0); in getCommentSplit()
170 static BreakableToken::Split
175 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
177 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
209 return BreakableToken::Split(SpaceOffset + 1, 0); in getStringSplit()
211 return BreakableToken::Split(SlashOffset + 1, 0); in getStringSplit()
213 return BreakableToken::Split(WordStartOffset + 1, 0); in getStringSplit()
215 return BreakableToken::Split(SplitPoint, 0); in getStringSplit()
216 return BreakableToken::Split(StringRef::npos, 0); in getStringSplit()
229 Split Split) const { in getLengthAfterCompression()
233 // - Split is (4, 2), denoting the two spaces between the two words; in getLengthAfterCompression()
235 // We compute the number of columns when the split is compressed into a single in getLengthAfterCompression()
239 // FIXME: Correctly measure the length of whitespace in Split.second so it in getLengthAfterCompression()
241 return RemainingTokenColumns + 1 - Split.second; in getLengthAfterCompression()
279 BreakableToken::Split BreakableStringLiteral::getSplit( in getSplit()
287 unsigned TailOffset, Split Split, in insertBreak() argument
291 Tok, Prefix.size() + TailOffset + Split.first, Split.second, Postfix, in insertBreak()
377 unsigned LineIndex, unsigned TailOffset, Split Split, in insertBreak() argument
381 Split.first, in insertBreak()
382 /*ReplaceChars=*/Split.second, /*PreviousPostfix=*/Postfix, in insertBreak()
418 BreakableToken::Split
424 return Split(StringRef::npos, 0); in getSplit()
431 unsigned LineIndex, unsigned TailOffset, Split Split, in compressWhitespace() argument
435 // the start of the corresponding token, so compute the start of the Split in compressWhitespace()
439 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in compressWhitespace()
440 unsigned CharsToRemove = Split.second; in compressWhitespace()
493 .split(Lines, UseCRLF ? "\r\n" : "\n"); in BreakableBlockComment()
607 BreakableToken::Split BreakableBlockComment::getSplit( in getSplit()
612 return Split(StringRef::npos, 0); in getSplit()
713 Split Split, unsigned ContentIndent, in insertBreak() argument
722 Text.size() == Split.first + Split.second) { in insertBreak()
728 // The split offset is from the beginning of the line. Convert it to an offset in insertBreak()
731 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in insertBreak()
732 unsigned CharsToRemove = Split.second; in insertBreak()
743 BreakableToken::Split BreakableBlockComment::getReflowSplit( in getReflowSplit()
746 return Split(StringRef::npos, 0); in getReflowSplit()
755 return Split(StringRef::npos, 0); in getReflowSplit()
759 return Split(0, Trimmed != StringRef::npos ? Trimmed : 0); in getReflowSplit()
795 // Note: this works because getCommentSplit is careful never to split at in adaptStartOfLine()
799 insertBreak(LineIndex, 0, Split(1, BreakLength), /*ContentIndent=*/0, in adaptStartOfLine()
837 BreakableToken::Split
846 return Split(TrimmedLine.size(), Line.size() - TrimmedLine.size()); in getSplitAfterLastLine()
848 return Split(StringRef::npos, 0); in getSplitAfterLastLine()
882 TokenText.split(Lines, "\n"); in BreakableLineCommentSection()
995 // would split the contents of the enum into two unwrapped lines in this in BreakableLineCommentSection()
1027 unsigned LineIndex, unsigned TailOffset, Split Split, in insertBreak() argument
1030 // Compute the offset of the split relative to the beginning of the token in insertBreak()
1033 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in insertBreak()
1034 unsigned CharsToRemove = Split.second; in insertBreak()
1041 BreakableComment::Split BreakableLineCommentSection::getReflowSplit( in getReflowSplit()
1044 return Split(StringRef::npos, 0); in getReflowSplit()
1049 // split we replace all whitespace before the current line comment token in getReflowSplit()
1050 // (which does not need to be included in the split), plus the start of the in getReflowSplit()
1052 return Split(0, Trimmed != StringRef::npos ? Trimmed : 0); in getReflowSplit()