enum FormatStyle::OperandAlignmentStyle
Description
Different styles for aligning operands.
Declared at: clang/include/clang/Format/Format.h:334
Enumerators
Name | Value | Comment |
---|---|---|
OAS_DontAlign | 0 | Do not align operands of binary and ternary expressions. The wrapped lines are indented ``ContinuationIndentWidth`` spaces from the start of the line. |
OAS_Align | 1 | Horizontally align operands of binary and ternary expressions.Specifically, this aligns operands of a single expression that needs to be split over multiple lines, e.g.:When ``BreakBeforeBinaryOperators`` is set, the wrapped operator is aligned with the operand on the first line. |
OAS_AlignAfterOperator | 2 | Horizontally align operands of binary and ternary expressions.This is similar to ``AO_Align``, except when ``BreakBeforeBinaryOperators`` is set, the operator is un-indented so that the wrapped operand is aligned with the operand on the first line. |