clang
10.0.0git
|
#include "/work/www-prereleases/10.0.0/rc2/docsbuild/clang/lib/Format/BreakableToken.h"
Public Member Functions | |
BreakableBlockComment (const FormatToken &Token, unsigned StartColumn, unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style, bool UseCRLF) | |
Split | getSplit (unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, unsigned ContentStartColumn, const llvm::Regex &CommentPragmasRegex) const override |
unsigned | getRangeLength (unsigned LineIndex, unsigned Offset, StringRef::size_type Length, unsigned StartColumn) const override |
unsigned | getRemainingLength (unsigned LineIndex, unsigned Offset, unsigned StartColumn) const override |
unsigned | getContentStartColumn (unsigned LineIndex, bool Break) const override |
unsigned | getContentIndent (unsigned LineIndex) const override |
void | insertBreak (unsigned LineIndex, unsigned TailOffset, Split Split, unsigned ContentIndent, WhitespaceManager &Whitespaces) const override |
Split | getReflowSplit (unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const override |
void | reflow (unsigned LineIndex, WhitespaceManager &Whitespaces) const override |
bool | introducesBreakBeforeToken () const override |
void | adaptStartOfLine (unsigned LineIndex, WhitespaceManager &Whitespaces) const override |
Split | getSplitAfterLastLine (unsigned TailOffset) const override |
bool | mayReflow (unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const override |
![]() | |
bool | supportsReflow () const override |
unsigned | getLineCount () const override |
Split | getSplit (unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, unsigned ContentStartColumn, const llvm::Regex &CommentPragmasRegex) const override |
void | compressWhitespace (unsigned LineIndex, unsigned TailOffset, Split Split, WhitespaceManager &Whitespaces) const override |
Static Public Attributes | |
static const llvm::StringSet | ContentIndentingJavadocAnnotations |
Additional Inherited Members | |
![]() | |
BreakableComment (const FormatToken &Token, unsigned StartColumn, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) | |
Creates a breakable token for a comment. More... | |
const FormatToken & | tokenAt (unsigned LineIndex) const |
![]() | |
SmallVector< StringRef, 16 > | Lines |
SmallVector< StringRef, 16 > | Content |
SmallVector< FormatToken *, 16 > | Tokens |
SmallVector< int, 16 > | ContentColumn |
unsigned | StartColumn |
StringRef | ReflowPrefix = " " |
Definition at line 357 of file BreakableToken.h.
clang::format::BreakableBlockComment::BreakableBlockComment | ( | const FormatToken & | Token, |
unsigned | StartColumn, | ||
unsigned | OriginalStartColumn, | ||
bool | FirstInLine, | ||
bool | InPPDirective, | ||
encoding::Encoding | Encoding, | ||
const FormatStyle & | Style, | ||
bool | UseCRLF | ||
) |
long long long
Definition at line 333 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::BreakableComment::ContentColumn, clang::format::FormatToken::is(), clang::format::BreakableComment::Lines, max(), clang::format::BreakableComment::StartColumn, clang::format::Tok, clang::format::BreakableComment::Tokens, and clang::format::FormatToken::TokenText.
|
override |
Definition at line 645 of file BreakableToken.cpp.
|
override |
line 0
Definition at line 549 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, ContentIndentingJavadocAnnotations, and clang::format::Style.
Referenced by getReflowSplit().
|
override |
Definition at line 536 of file BreakableToken.cpp.
References clang::format::BreakableComment::ContentColumn, ContentIndentingJavadocAnnotations, and max().
|
override |
Definition at line 507 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::Encoding, clang::format::BreakableComment::Lines, and clang::format::Style.
Referenced by getRemainingLength().
|
override |
Definition at line 600 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, getContentIndent(), mayReflow(), and Split.
|
override |
Definition at line 529 of file BreakableToken.cpp.
References getRangeLength().
|
override |
Definition at line 459 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::BreakableComment::ContentColumn, clang::format::Encoding, clang::format::getCommentSplit(), clang::format::InPPDirective, clang::format::BreakableComment::Lines, Split, and clang::format::Style.
|
override |
Definition at line 695 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, Line, and Split.
|
override |
Definition at line 568 of file BreakableToken.cpp.
|
override |
Definition at line 618 of file BreakableToken.cpp.
References clang::format::BreakableComment::Lines.
|
overridevirtual |
Implements clang::format::BreakableComment.
Definition at line 708 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, clang::format::FormatToken::Finalized, clang::format::BreakableComment::Lines, clang::format::mayReflowContent(), clang::format::switchesFormatting(), clang::format::Tok, and clang::format::BreakableComment::tokenAt().
Referenced by getReflowSplit().
|
override |
Definition at line 624 of file BreakableToken.cpp.
|
static |
Definition at line 391 of file BreakableToken.h.
Referenced by getContentIndent(), and getContentStartColumn().