struct FormatStyle::AlignConsecutiveStyle
Declaration
struct FormatStyle::AlignConsecutiveStyle { /* full declaration omitted */ };
Description
Alignment options. They can also be read as a whole for compatibility. The choices are: - None - Consecutive - AcrossEmptyLines - AcrossComments - AcrossEmptyLinesAndComments For example, to align across empty lines and not across comments, either of these work.
Declared at: clang/include/clang/Format/Format.h:160
Member Variables
- public bool Enabled
- Whether aligning is enabled.
- public bool AcrossEmptyLines
- Whether to align across empty lines.
- public bool AcrossComments
- Whether to align across comments.
- public bool AlignCompound
- Only for ``AlignConsecutiveAssignments``. Whether compound assignments like ``+=`` are aligned along with ``=``.
- public bool PadOperators
- Only for ``AlignConsecutiveAssignments``. Whether short assignment operators are left-padded to the same length as long ones in order to put all assignment operators to the right of the left hand side.