使用Artistic Style代码格式化程序,如何实现--break-after-logical / -xL
的反面,如果我有......
if (thisVariable1 == thatVariable1
|| thisVariable2 == thatVariable2
|| thisVariable3 == thatVariable3)
...
......我明白了......
if (thisVariable1 == thatVariable1 || thisVariable2 == thatVariable2 || thisVariable3 == thatVariable3)
...
答案 0 :(得分:5)
Artistic style
似乎无法实现这一目标。
这是非常明智的,因为它实际上混淆了代码:
!=
更难以在单行中发现)。 我实际上会写:
if ( thisVariable1 == thatVariable1
|| thisVariable2 == thatVariable2
|| longerVariable3 == thatVariable3 )
...