I have this clang format config:
ColumnLimit : 0
BreakBeforeBraces: Custom
BraceWrapping:
IndentBraces: false
BeforeLambdaBody: true
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: None
IndentWidth : 4
LambdaBodyIndentation: OuterScope
ConstructorInitializerIndentWidth: 4
AlignAfterOpenBracket: DontAlign
ContinuationIndentWidth: 0
it works as intended in this case:
void func() {
auto x = something.acceptLambda([]()
{
doStuff();
});
}
but if I chain another method, lambda { bracket intendation will change which I dont want
void func() {
auto x = something.acceptLambda([]()
{
doStuff();
})
.then();
}
Is this a bug? Is it possible to set up formatting to do
void func() {
auto x = something.acceptLambda([]()
{
doStuff();
})
.then();
}