This is a patch to fix the problem identify by this bug: https://bugs.llvm.org/show_bug.cgi?id=27640.
When formatting this code with option "BreakBeforeBraces: Allman", the lambda body are not put entirely on new lines if the lambda is inside a function call.
Here an example of the current formatting in "allman":
connect([]() { foo(); bar(); });
We the new option, the formatting is like that:
connect( []() { foo(); bar(); });
It's my first patch for this project, so if I made some mistake, do not hesitate to explain me that is wrong.
I write few test to check that the new option work and check that there is no regression.
This patch should also meet the request of this bug/request: https://bugs.llvm.org//show_bug.cgi?id=32151
I'd just make that default for Allman style.