clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc3/docsbuild/llvm.src/tools/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) | |
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, 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, llvm::Regex &CommentPragmasRegex) const override |
![]() | |
bool | supportsReflow () const override |
unsigned | getLineCount () const override |
Split | getSplit (unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, unsigned ContentStartColumn, 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 362 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 | ||
) |
long long long
Definition at line 332 of file BreakableToken.cpp.
References clang::format::FormatStyle::ColumnLimit, clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::BreakableComment::ContentColumn, clang::format::Encoding, clang::format::InPPDirective, clang::format::FormatToken::is(), clang::format::FormatStyle::Language, clang::format::BreakableComment::Lines, clang::format::FormatStyle::LK_Java, clang::format::FormatStyle::LK_JavaScript, max(), clang::format::BreakableComment::StartColumn, clang::format::Style, clang::format::FormatStyle::TabWidth, clang::format::Tok, clang::format::BreakableComment::Tokens, and clang::format::FormatToken::TokenText.
|
override |
Definition at line 633 of file BreakableToken.cpp.
|
override |
line 0
Definition at line 536 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, ContentIndentingJavadocAnnotations, clang::format::FormatStyle::ContinuationIndentWidth, clang::format::FormatStyle::Language, clang::format::FormatStyle::LK_Java, clang::format::FormatStyle::LK_JavaScript, and clang::format::Style.
Referenced by getReflowSplit().
|
override |
Definition at line 523 of file BreakableToken.cpp.
References clang::format::BreakableComment::ContentColumn, ContentIndentingJavadocAnnotations, and max().
|
override |
Definition at line 494 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::Encoding, clang::format::BreakableComment::Lines, clang::format::Style, and clang::format::FormatStyle::TabWidth.
Referenced by getRemainingLength().
|
override |
Definition at line 588 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, getContentIndent(), mayReflow(), and Split.
|
override |
Definition at line 516 of file BreakableToken.cpp.
References getRangeLength().
|
override |
Definition at line 683 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, Line, and Split.
|
override |
Definition at line 555 of file BreakableToken.cpp.
|
override |
Definition at line 606 of file BreakableToken.cpp.
References clang::format::BreakableComment::Lines.
|
overridevirtual |
Implements clang::format::BreakableComment.
Definition at line 696 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 612 of file BreakableToken.cpp.
|
static |
Definition at line 393 of file BreakableToken.h.
Referenced by getContentIndent(), and getContentStartColumn().