clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc2/builddocs/llvm.src/tools/clang/lib/Format/BreakableToken.h"
Public Member Functions | |
BreakableLineCommentSection (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 | getContentStartColumn (unsigned LineIndex, bool Break) 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 |
void | adaptStartOfLine (unsigned LineIndex, WhitespaceManager &Whitespaces) const override |
void | updateNextToken (LineState &State) 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 |
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 438 of file BreakableToken.h.
clang::format::BreakableLineCommentSection::BreakableLineCommentSection | ( | const FormatToken & | Token, |
unsigned | StartColumn, | ||
unsigned | OriginalStartColumn, | ||
bool | FirstInLine, | ||
bool | InPPDirective, | ||
encoding::Encoding | Encoding, | ||
const FormatStyle & | Style | ||
) |
Definition at line 709 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::BreakableComment::ContentColumn, clang::format::getLineCommentIndentPrefix(), clang::format::FormatToken::is(), clang::isAlphanumeric(), clang::format::FormatStyle::Language, clang::format::BreakableComment::Lines, clang::format::FormatStyle::LK_TextProto, clang::format::FormatStyle::TabWidth, clang::format::Tok, and clang::format::BreakableComment::Tokens.
|
override |
Definition at line 899 of file BreakableToken.cpp.
|
override |
Definition at line 806 of file BreakableToken.cpp.
References clang::format::BreakableComment::ContentColumn.
|
override |
Definition at line 798 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::BreakableComment::Content, clang::format::Encoding, clang::format::Style, and clang::format::FormatStyle::TabWidth.
|
override |
Definition at line 834 of file BreakableToken.cpp.
References clang::format::BreakableComment::Content, mayReflow(), and Split.
|
override |
Definition at line 813 of file BreakableToken.cpp.
|
overridevirtual |
Implements clang::format::BreakableComment.
Definition at line 947 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 848 of file BreakableToken.cpp.
|
override |
Definition at line 941 of file BreakableToken.cpp.
References clang::format::FormatToken::Next, and clang::format::LineState::NextToken.