clang
6.0.0
|
#include "/work/www-prereleases/6.0.0/rc3/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 |
void | insertBreak (unsigned LineIndex, unsigned TailOffset, Split Split, 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 ReflowColumn, llvm::Regex &CommentPragmasRegex) const override |
void | compressWhitespace (unsigned LineIndex, unsigned TailOffset, Split Split, WhitespaceManager &Whitespaces) const override |
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 344 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 314 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 577 of file BreakableToken.cpp.
|
override |
Definition at line 505 of file BreakableToken.cpp.
References clang::format::BreakableComment::ContentColumn, and max().
|
override |
Definition at line 476 of file BreakableToken.cpp.
Referenced by getRemainingLength().
|
override |
Definition at line 541 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, and mayReflow().
|
override |
Definition at line 498 of file BreakableToken.cpp.
References getRangeLength().
|
override |
Definition at line 624 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, and Line.
|
override |
Definition at line 512 of file BreakableToken.cpp.
|
override |
Definition at line 550 of file BreakableToken.cpp.
References clang::format::BreakableComment::Lines.
|
overridevirtual |
Implements clang::format::BreakableComment.
Definition at line 637 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 556 of file BreakableToken.cpp.