如何以clang格式控制三元运算符的缩进?我想要普通的延续,例如
int foobar = bar ? a
: b;
Run Code Online (Sandbox Code Playgroud)
相反,我得到运营商的一致性
int foobar = bar ? a
: b;
Run Code Online (Sandbox Code Playgroud)
我已经有了AlignOperands:false有什么想法吗?
(完整选项:-style ='{BasedOnStyle:LLVM,TabWidth:4,IndentWidth:4,ContinuationIndentWidth:8,UseTab:Always,AlignAfterOpenBracket:false,BreakBeforeBinaryOperators:All,AlwaysBreakTemplateDeclarations:true,AlignOperands:false,ColumnLimit:120}' )