clang
8.0.0
|
An unwrapped line is a sequence of Token
, that we would like to put on a single line if there was no column limit.
More...
#include "/work/www-prereleases/8.0.0/rc4/docsbuild/llvm.src/tools/clang/lib/Format/UnwrappedLineParser.h"
Public Member Functions | |
UnwrappedLine () | |
Public Attributes | |
std::list< UnwrappedLineNode > | Tokens |
The Tokens comprising this UnwrappedLine . More... | |
unsigned | Level |
The indent level of the UnwrappedLine . More... | |
bool | InPPDirective |
Whether this UnwrappedLine is part of a preprocessor directive. More... | |
bool | MustBeDeclaration |
size_t | MatchingOpeningBlockLineIndex = kInvalidIndex |
If this UnwrappedLine closes a block in a sequence of lines, MatchingOpeningBlockLineIndex stores the index of the corresponding opening line. More... | |
size_t | MatchingClosingBlockLineIndex = kInvalidIndex |
If this UnwrappedLine opens a block, stores the index of the line with the corresponding closing brace. More... | |
unsigned | FirstStartColumn = 0 |
Static Public Attributes | |
static const size_t | kInvalidIndex = -1 |
An unwrapped line is a sequence of Token
, that we would like to put on a single line if there was no column limit.
This is used as a main interface between the UnwrappedLineParser
and the UnwrappedLineFormatter
. The key property is that changing the formatting within an unwrapped line does not affect any other unwrapped lines.
Definition at line 37 of file UnwrappedLineParser.h.
|
inline |
Definition at line 291 of file UnwrappedLineParser.h.
unsigned clang::format::UnwrappedLine::FirstStartColumn = 0 |
Definition at line 64 of file UnwrappedLineParser.h.
Referenced by clang::format::printDebugInfo().
bool clang::format::UnwrappedLine::InPPDirective |
Whether this UnwrappedLine
is part of a preprocessor directive.
Definition at line 48 of file UnwrappedLineParser.h.
Referenced by clang::format::printDebugInfo().
|
static |
Definition at line 62 of file UnwrappedLineParser.h.
Referenced by clang::format::AffectedRangeManager::affectsCharSourceRange(), clang::format::hash_combine(), and clang::format::printDebugInfo().
unsigned clang::format::UnwrappedLine::Level |
The indent level of the UnwrappedLine
.
Definition at line 45 of file UnwrappedLineParser.h.
Referenced by clang::format::printDebugInfo().
size_t clang::format::UnwrappedLine::MatchingClosingBlockLineIndex = kInvalidIndex |
If this UnwrappedLine
opens a block, stores the index of the line with the corresponding closing brace.
Definition at line 60 of file UnwrappedLineParser.h.
size_t clang::format::UnwrappedLine::MatchingOpeningBlockLineIndex = kInvalidIndex |
If this UnwrappedLine
closes a block in a sequence of lines, MatchingOpeningBlockLineIndex
stores the index of the corresponding opening line.
Otherwise, MatchingOpeningBlockLineIndex
must be kInvalidIndex
.
Definition at line 56 of file UnwrappedLineParser.h.
bool clang::format::UnwrappedLine::MustBeDeclaration |
Definition at line 50 of file UnwrappedLineParser.h.
std::list<UnwrappedLineNode> clang::format::UnwrappedLine::Tokens |
The Tokens
comprising this UnwrappedLine
.
Definition at line 42 of file UnwrappedLineParser.h.
Referenced by clang::format::continuesLineCommentSection(), clang::format::isGoogScope(), clang::format::isIIFE(), and clang::format::printDebugInfo().