reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/BreakableToken.cpp
  276   if (CommentPragmasRegex.match(Content[LineIndex]))
  278   return getCommentSplit(Content[LineIndex].substr(TailOffset),
  286   StringRef Text = Content[LineIndex].substr(TailOffset);
  349   Content.resize(Lines.size());
  350   Content[0] = Lines[0];
  367   if (Lines.size() >= 2 && Content[1].startswith("**") &&
  383     if (i + 1 == e && Content[i].empty())
  385     if (!Content[i].empty() && i + 1 != e && Decoration.startswith(Content[i]))
  385     if (!Content[i].empty() && i + 1 != e && Decoration.startswith(Content[i]))
  387     while (!Content[i].startswith(Decoration))
  394     if (Content[i].empty()) {
  416     unsigned DecorationSize = Decoration.startswith(Content[i])
  417                                   ? Content[i].size()
  422     Content[i] = Content[i].substr(DecorationSize);
  422     Content[i] = Content[i].substr(DecorationSize);
  423     if (!Decoration.startswith(Content[i]))
  452       llvm::dbgs() << i << " |" << Content[i] << "| "
  454                    << "IN=" << (Content[i].data() - Lines[i].data()) << "\n";
  463   if (CommentPragmasRegex.match(Content[LineIndex]))
  465   return getCommentSplit(Content[LineIndex].substr(TailOffset),
  496       Content[LineIndex - 1].data() - Lines[LineIndex - 1].data();
  497   Content[LineIndex - 1] = Lines[LineIndex - 1].substr(
  499   Content[LineIndex] = Lines[LineIndex].substr(StartOfLine);
  512       encoding::columnWidthWithTabs(Content[LineIndex].substr(Offset, Length),
  522     if (Content[LineIndex].substr(Offset, StringRef::npos).empty()) {
  556   StringRef ContentWithNoDecoration = Content[LineIndex];
  571   StringRef Text = Content[LineIndex].substr(TailOffset);
  608   size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks);
  627   StringRef TrimmedContent = Content[LineIndex].ltrim(Blanks);
  633   unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() +
  634                                      Content[LineIndex - 1].size() -
  664   if (Content[LineIndex].empty()) {
  684   unsigned WhitespaceOffsetInToken = Content[LineIndex - 1].data() +
  685                                      Content[LineIndex - 1].size() -
  687   unsigned WhitespaceLength = Content[LineIndex].data() -
  701     StringRef Line = Content.back().substr(TailOffset);
  713   StringRef IndentContent = Content[LineIndex];
  718          mayReflowContent(Content[LineIndex]) && !Tok.Finalized &&
  739     Content.resize(Lines.size());
  772       Content[i] = Lines[i].substr(IndentPrefix.size());
  782       size_t EndOfLine = Content[i].find_last_not_of(Blanks);
  784         EndOfLine = Content[i].size();
  787       Content[i] = Content[i].substr(0, EndOfLine);
  787       Content[i] = Content[i].substr(0, EndOfLine);
  815       Content[LineIndex].substr(Offset, Length), StartColumn, Style.TabWidth,
  829   StringRef Text = Content[LineIndex].substr(TailOffset);
  852   size_t Trimmed = Content[LineIndex].find_first_not_of(Blanks);
  899       Content[LineIndex].data() - Lines[LineIndex].data();
  925         (Content[LineIndex].data() - Lines[LineIndex].data()) +
  961   StringRef IndentContent = Content[LineIndex];
  972          mayReflowContent(Content[LineIndex]) && !Tok.Finalized &&