使用 Artistic Style 代码格式化程序,我如何实现与
--break-after-logical / -xL
相反的效果,这样如果我...
if (thisVariable1 == thatVariable1
|| thisVariable2 == thatVariable2
|| thisVariable3 == thatVariable3)
...
...我明白...
if (thisVariable1 == thatVariable1 || thisVariable2 == thatVariable2 || thisVariable3 == thatVariable3)
...
Artistic style
似乎无法实现这一点。
这是相当明智的,因为它实际上混淆了代码:
!=
在一行中更难发现)。 我实际上会写:
if ( thisVariable1 == thatVariable1
|| thisVariable2 == thatVariable2
|| longerVariable3 == thatVariable3 )
...