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