clang API Documentation
#include <TokenAnnotator.h>
Public Member Functions | |
AnnotatedLine (const UnwrappedLine &Line) | |
~AnnotatedLine () | |
Public Attributes | |
FormatToken * | First |
FormatToken * | Last |
SmallVector< AnnotatedLine *, 0 > | Children |
LineType | Type |
unsigned | Level |
bool | InPPDirective |
bool | MustBeDeclaration |
bool | MightBeFunctionDecl |
bool | Affected |
bool | LeadingEmptyLinesAffected |
bool | ChildrenAffected |
True if a one of this line's children intersects with an input range. |
Definition at line 38 of file TokenAnnotator.h.
clang::format::AnnotatedLine::AnnotatedLine | ( | const UnwrappedLine & | Line | ) | [inline] |
Definition at line 40 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.
clang::format::AnnotatedLine::~AnnotatedLine | ( | ) | [inline] |
Definition at line 73 of file TokenAnnotator.h.
References Children.
True
if this line should be formatted, i.e. intersects directly or indirectly with one of the input ranges.
Definition at line 92 of file TokenAnnotator.h.
SmallVector<AnnotatedLine *, 0> clang::format::AnnotatedLine::Children |
Definition at line 82 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate(), AnnotatedLine(), clang::format::TokenAnnotator::calculateFormattingInformation(), and ~AnnotatedLine().
True
if a one of this line's children intersects with an input range.
Definition at line 99 of file TokenAnnotator.h.
Definition at line 79 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate(), AnnotatedLine(), clang::format::TokenAnnotator::calculateFormattingInformation(), clang::format::ContinuationIndenter::getInitialState(), and clang::format::TokenAnnotator::setCommentLineLevels().
Definition at line 86 of file TokenAnnotator.h.
Referenced by clang::format::ContinuationIndenter::getColumnLimit().
Definition at line 80 of file TokenAnnotator.h.
Referenced by AnnotatedLine(), and clang::format::TokenAnnotator::calculateFormattingInformation().
True
if the leading empty lines of this line intersect with one of the input ranges.
Definition at line 96 of file TokenAnnotator.h.
Definition at line 85 of file TokenAnnotator.h.
Referenced by clang::format::ContinuationIndenter::getInitialState(), and clang::format::TokenAnnotator::setCommentLineLevels().
Definition at line 88 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::calculateFormattingInformation().
Definition at line 87 of file TokenAnnotator.h.
Definition at line 84 of file TokenAnnotator.h.
Referenced by clang::format::TokenAnnotator::annotate().