我希望结果看起来像这样:
auto foo = FooBuilder()
.WithSomething()
.WithSomethingElse()
.Build();
Run Code Online (Sandbox Code Playgroud)
但改为这样clang-format格式化:
auto foo = FooBuilder()
.WithSomething()
.WithSomethingElse()
.Build();
Run Code Online (Sandbox Code Playgroud)
我希望链式调用相对于上一行的开始而不是相对于FooBuilder()调用缩进。我在clang-format控制此的选项中看不到任何东西。设置ContinuationIndentWidth无济于事。有任何想法吗?