class AnnotatedLine
Declaration
class AnnotatedLine { /* full declaration omitted */ };
Declared at: clang/lib/Format/TokenAnnotator.h:36
Member Variables
- public clang::format::FormatToken* First
- public clang::format::FormatToken* Last
- public SmallVector<clang::format::AnnotatedLine*, 0> Children
- public clang::format::LineType Type
- public unsigned int Level
- public size_t MatchingOpeningBlockLineIndex
- public size_t MatchingClosingBlockLineIndex
- public bool InPPDirective
- public bool MustBeDeclaration
- public bool MightBeFunctionDecl
- public bool IsMultiVariableDeclStmt
- public bool Affected
- \c True if this line should be formatted, i.e. intersects directly or indirectly with one of the input ranges.
- public bool LeadingEmptyLinesAffected
- \c True if the leading empty lines of this line intersect with one of the input ranges.
- public bool ChildrenAffected
- \c True if one of this line's children intersects with an input range.
- public unsigned int FirstStartColumn
Method Overview
- public AnnotatedLine(const clang::format::UnwrappedLine & Line)
- private AnnotatedLine(const clang::format::AnnotatedLine &)
- public template <typename... Ts>bool endsWith(Ts... Tokens) const
- public bool isComment() const
- public bool mightBeFunctionDefinition() const
- public template <typename... Ts>bool startsWith(Ts... Tokens) const
- public bool startsWithNamespace() const
- public ~AnnotatedLine()
Methods
¶AnnotatedLine(
const clang::format::UnwrappedLine& Line)
AnnotatedLine(
const clang::format::UnwrappedLine& Line)
Declared at: clang/lib/Format/TokenAnnotator.h:38
Parameters
- const clang::format::UnwrappedLine& Line
¶AnnotatedLine(const clang::format::AnnotatedLine&)
AnnotatedLine(const clang::format::AnnotatedLine&)
Declared at: clang/lib/Format/TokenAnnotator.h:150
Parameters
- const clang::format::AnnotatedLine&
¶template <typename... Ts>
bool endsWith(Ts... Tokens) const
template <typename... Ts>
bool endsWith(Ts... Tokens) const
Description
\c true if this line ends with the given tokens in reversed order, ignoring comments. For example, given tokens [T1, T2, T3, ...], the function returns true if this line is like "... T3 T2 T1".
Declared at: clang/lib/Format/TokenAnnotator.h:93
Templates
- Ts
Parameters
- Ts... Tokens
¶bool isComment() const
bool isComment() const
Declared at: clang/lib/Format/TokenAnnotator.h:79
¶bool mightBeFunctionDefinition() const
bool mightBeFunctionDefinition() const
Description
\c true if this line looks like a function definition instead of a function declaration. Asserts MightBeFunctionDecl.
Declared at: clang/lib/Format/TokenAnnotator.h:99
¶template <typename... Ts>
bool startsWith(Ts... Tokens) const
template <typename... Ts>
bool startsWith(Ts... Tokens) const
Description
\c true if this line starts with the given tokens in order, ignoring comments.
Declared at: clang/lib/Format/TokenAnnotator.h:85
Templates
- Ts
Parameters
- Ts... Tokens
¶bool startsWithNamespace() const
bool startsWithNamespace() const
Description
\c true if this line starts a namespace definition.
Declared at: clang/lib/Format/TokenAnnotator.h:115
¶~AnnotatedLine()
~AnnotatedLine()
Declared at: clang/lib/Format/TokenAnnotator.h:68