clang
3.7.0
|
#include <TokenAnnotator.h>
Public Member Functions | |
AnnotatedLine (const UnwrappedLine &Line) | |
~AnnotatedLine () | |
template<typename... Ts> | |
bool | startsWith (Ts...Tokens) const |
Public Attributes | |
FormatToken * | First |
FormatToken * | Last |
SmallVector< AnnotatedLine *, 0 > | Children |
LineType | Type |
unsigned | Level |
bool | InPPDirective |
bool | MustBeDeclaration |
bool | MightBeFunctionDecl |
bool | IsMultiVariableDeclStmt |
bool | Affected |
bool | LeadingEmptyLinesAffected |
bool | ChildrenAffected |
True if a one of this line's children intersects with an input range. More... | |
Definition at line 39 of file TokenAnnotator.h.
|
inline |
Definition at line 41 of file TokenAnnotator.h.
References Children, clang::format::UnwrappedLineNode::Children, clang::format::FormatToken::Children, Current, First, Last, clang::format::FormatToken::Next, Node, clang::format::FormatToken::Previous, clang::format::FormatToken::Tok, and clang::format::UnwrappedLine::Tokens.
|
inline |
Definition at line 71 of file TokenAnnotator.h.
References Children, clang::format::FormatToken::Children, Current, First, clang::format::FormatToken::Next, and clang::format::FormatToken::Role.
|
inline |
true
if this line starts with the given tokens in order, ignoring comments.
Definition at line 85 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate().
bool clang::format::AnnotatedLine::Affected |
True
if this line should be formatted, i.e. intersects directly or indirectly with one of the input ranges.
Definition at line 103 of file TokenAnnotator.h.
Referenced by clang::format::UnwrappedLineFormatter::format().
SmallVector<AnnotatedLine *, 0> clang::format::AnnotatedLine::Children |
Definition at line 92 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate(), AnnotatedLine(), clang::format::TokenAnnotator::calculateFormattingInformation(), clang::format::UnwrappedLineFormatter::format(), and ~AnnotatedLine().
bool clang::format::AnnotatedLine::ChildrenAffected |
True
if a one of this line's children intersects with an input range.
Definition at line 110 of file TokenAnnotator.h.
Referenced by clang::format::UnwrappedLineFormatter::format().
FormatToken* clang::format::AnnotatedLine::First |
Definition at line 89 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate(), AnnotatedLine(), clang::format::TokenAnnotator::calculateFormattingInformation(), clang::format::UnwrappedLineFormatter::format(), clang::format::ContinuationIndenter::getInitialState(), clang::format::TokenAnnotator::setCommentLineLevels(), startsWith(), and ~AnnotatedLine().
bool clang::format::AnnotatedLine::InPPDirective |
Definition at line 96 of file TokenAnnotator.h.
Referenced by clang::format::UnwrappedLineFormatter::format(), and clang::format::ContinuationIndenter::getColumnLimit().
bool clang::format::AnnotatedLine::IsMultiVariableDeclStmt |
Definition at line 99 of file TokenAnnotator.h.
FormatToken* clang::format::AnnotatedLine::Last |
Definition at line 90 of file TokenAnnotator.h.
Referenced by AnnotatedLine(), clang::format::TokenAnnotator::calculateFormattingInformation(), and clang::format::UnwrappedLineFormatter::format().
bool clang::format::AnnotatedLine::LeadingEmptyLinesAffected |
True
if the leading empty lines of this line intersect with one of the input ranges.
Definition at line 107 of file TokenAnnotator.h.
Referenced by clang::format::UnwrappedLineFormatter::format().
unsigned clang::format::AnnotatedLine::Level |
bool clang::format::AnnotatedLine::MightBeFunctionDecl |
Definition at line 98 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::calculateFormattingInformation().
bool clang::format::AnnotatedLine::MustBeDeclaration |
Definition at line 97 of file TokenAnnotator.h.
LineType clang::format::AnnotatedLine::Type |
Definition at line 94 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate(), and clang::format::UnwrappedLineFormatter::format().