Open inicula opened 1 year ago
From what I can find in the clang-format documentation, there isn't an option (or a combination of options) to disable bin-packing for operands.
clang-format
I was looking for an option that if true, the code gets formatted like this:
true
bool long_condition = aaaaaaaaaaaaaa && aaaaaaaaaaaaaa && aaaaaaaaaaaaaa;
But, if false, it gets formatted like this (because it's assumed that putting all three operands on the same line would go over the column limit):
false
Does such an option (or combination of options) that achieves this formatting exist? If so, what is it?
If it doesn't exist, can this be added?
@llvm/issue-subscribers-clang-format
From what I can find in the
clang-format
documentation, there isn't an option (or a combination of options) to disable bin-packing for operands.I was looking for an option that if
true
, the code gets formatted like this:But, if
false
, it gets formatted like this (because it's assumed that putting all three operands on the same line would go over the column limit):Does such an option (or combination of options) that achieves this formatting exist? If so, what is it?
If it doesn't exist, can this be added?