clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc2/builddocs/llvm.src/tools/clang/lib/Format/BreakableToken.h"
Public Member Functions | |
BreakableStringLiteral (const FormatToken &Tok, unsigned StartColumn, StringRef Prefix, StringRef Postfix, unsigned UnbreakableTailLength, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) | |
Creates a breakable token for a single line string literal. More... | |
Split | getSplit (unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, unsigned ContentStartColumn, llvm::Regex &CommentPragmasRegex) const override |
void | insertBreak (unsigned LineIndex, unsigned TailOffset, Split Split, unsigned ContentIndent, WhitespaceManager &Whitespaces) const override |
void | compressWhitespace (unsigned LineIndex, unsigned TailOffset, Split Split, WhitespaceManager &Whitespaces) const override |
unsigned | getLineCount () 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 |
Protected Attributes | |
unsigned | StartColumn |
StringRef | Prefix |
StringRef | Postfix |
StringRef | Line |
unsigned | UnbreakableTailLength |
Definition at line 250 of file BreakableToken.h.
clang::format::BreakableStringLiteral::BreakableStringLiteral | ( | const FormatToken & | Tok, |
unsigned | StartColumn, | ||
StringRef | Prefix, | ||
StringRef | Postfix, | ||
unsigned | UnbreakableTailLength, | ||
bool | InPPDirective, | ||
encoding::Encoding | Encoding, | ||
const FormatStyle & | Style | ||
) |
Creates a breakable token for a single line string literal.
StartColumn
specifies the column in which the token will start after formatting.
Definition at line 233 of file BreakableToken.cpp.
References Line, and clang::format::FormatToken::TokenText.
|
inlineoverride |
Definition at line 267 of file BreakableToken.h.
References clang::format::getContentStartColumn(), clang::format::getLineCount(), clang::format::getRangeLength(), clang::format::getRemainingLength(), and Offset.
|
override |
Definition at line 228 of file BreakableToken.cpp.
References Prefix, and StartColumn.
|
override |
Definition at line 210 of file BreakableToken.cpp.
|
override |
Definition at line 212 of file BreakableToken.cpp.
|
override |
Definition at line 221 of file BreakableToken.cpp.
References clang::format::encoding::columnWidthWithTabs(), clang::format::Encoding, Line, Postfix, StartColumn, clang::format::Style, clang::format::FormatStyle::TabWidth, and UnbreakableTailLength.
|
override |
Definition at line 245 of file BreakableToken.cpp.
References clang::format::Encoding, clang::format::getStringSplit(), Line, Postfix, clang::format::Style, and clang::format::FormatStyle::TabWidth.
|
override |
Definition at line 252 of file BreakableToken.cpp.
|
protected |
Definition at line 285 of file BreakableToken.h.
Referenced by BreakableStringLiteral(), getRemainingLength(), and getSplit().
|
protected |
Definition at line 283 of file BreakableToken.h.
Referenced by getRemainingLength(), and getSplit().
|
protected |
Definition at line 281 of file BreakableToken.h.
Referenced by getContentStartColumn().
|
protected |
Definition at line 279 of file BreakableToken.h.
Referenced by getContentStartColumn(), and getRemainingLength().
|
protected |
Definition at line 288 of file BreakableToken.h.
Referenced by getRemainingLength().