clang  3.7.0
Public Member Functions | Public Attributes | List of all members
clang::format::AnnotatedLine Class Reference

#include <TokenAnnotator.h>

Collaboration diagram for clang::format::AnnotatedLine:
[legend]

Public Member Functions

 AnnotatedLine (const UnwrappedLine &Line)
 
 ~AnnotatedLine ()
 
template<typename... Ts>
bool startsWith (Ts...Tokens) const
 

Public Attributes

FormatTokenFirst
 
FormatTokenLast
 
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...
 

Detailed Description

Definition at line 39 of file TokenAnnotator.h.

Constructor & Destructor Documentation

clang::format::AnnotatedLine::AnnotatedLine ( const UnwrappedLine Line)
inline
clang::format::AnnotatedLine::~AnnotatedLine ( )
inline

Member Function Documentation

template<typename... Ts>
bool clang::format::AnnotatedLine::startsWith ( Ts...  Tokens) const
inline

true if this line starts with the given tokens in order, ignoring comments.

Definition at line 85 of file TokenAnnotator.h.

References First, and Tokens.

Referenced by clang::format::TokenAnnotator::annotate().

Member Data Documentation

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
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
bool clang::format::AnnotatedLine::InPPDirective
bool clang::format::AnnotatedLine::IsMultiVariableDeclStmt

Definition at line 99 of file TokenAnnotator.h.

FormatToken* clang::format::AnnotatedLine::Last
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
bool clang::format::AnnotatedLine::MustBeDeclaration

Definition at line 97 of file TokenAnnotator.h.

LineType clang::format::AnnotatedLine::Type

The documentation for this class was generated from the following file: