Closed
Description
Bugzilla Link | 38909 |
Version | 7.0 |
OS | Linux |
CC | @dwblaikie |
Extended Description
We use lambdas to write code like:
int main()
{
int newValue;
If(match, [&]() {
newValue = false;
}).ElseIf(match2, [&]() {
newValue = true;
}).Else([&]() {
newValue = false;
});
}
Unfortunately clang-format since version 5 started indenting the ElseIf:
$ clang-format -style webkit x.cpp
int main()
{
int newValue;
If(match, [&]() {
newValue = false;
})
.ElseIf(match2, [&]() {
newValue = true;
})
.Else([&]() {
newValue = false;
});
}
I couldn't find an option to turn this behaviour off.