enum FormatStyle::OperandAlignmentStyle

Description

Different styles for aligning operands.

Declared at: clang/include/clang/Format/Format.h:334

Enumerators

NameValueComment
OAS_DontAlign0Do not align operands of binary and ternary expressions. The wrapped lines are indented ``ContinuationIndentWidth`` spaces from the start of the line.
OAS_Align1Horizontally 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_AlignAfterOperator2Horizontally 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.