Using clang-format with default settings, the following:
if ((exprA) &&
(exprB))
turns into:
if ((exprA) && (exprB))
I'm trying to prevent the collapsing the conditions into a single line, with no success.
Is there currently a way to achieve this?
In clang-format documentation, the BreakBeforeBinaryOperators
parameter seems the closest to what I'm after:
BreakBeforeBinaryOperators (BinaryOperatorStyle)
The way to wrap binary operators.
- BOS_None (in configuration:
None
) Break after operators.
But it seems to kick in only when wrapping is required (column limit is exceeded), which isn't the usual case.