clang-format stack all if-statement arguments if they are too long

后端 未结 2 778
忘掉有多难
忘掉有多难 2021-01-19 13:49

I have an if statement that has several ored arguments. I have stacked them vertically as below for readability.

    if (health.fla         


        
2条回答
  •  庸人自扰
    2021-01-19 14:24

    Not directly, but you can achieve something like it with BreakBeforeBinaryOperators. Try setting this value to NonAssignment. This will put your || operators before each additional condition, though, not after them.

提交回复
热议问题