struct LineState
Declaration
struct LineState { /* full declaration omitted */ };
Description
The current state when indenting a unwrapped line. As the indenting tries different combinations this is copied by value.
Declared at: clang/lib/Format/ContinuationIndenter.h:415
Member Variables
- public unsigned int Column
- The number of used columns in the current line.
- public clang::format::FormatToken* NextToken
- The token that needs to be next formatted.
- public bool NoContinuation
- \c true if \p NextToken should not continue this line.
- public unsigned int StartOfLineLevel
- The \c NestingLevel at the start of this line.
- public unsigned int LowestLevelOnLine
- The lowest \c NestingLevel on the current line.
- public unsigned int StartOfStringLiteral
- The start column of the string literal, if we're in a string literal sequence, 0 otherwise.
- public SmallVector<clang::format::ParenState> Stack
- A stack keeping track of properties applying to parenthesis levels.
- public bool IgnoreStackForComparison
- FIXME: Come up with a better algorithm instead.
- public unsigned int FirstIndent
- The indent of the first token.
- public const clang::format::AnnotatedLine* Line
- Does not need to be considered for memoization because it doesn't change.