[PATCH] D44609: [Clang-Format] New option BreakBeforeLambdaBody to manage lambda line break inside function parameter call
Francois JEAN via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 18 10:42:17 PDT 2018
Wawha created this revision.
Herald added subscribers: cfe-commits, klimek.
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":
We the new option, the formatting is like that:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5521 bytes
Desc: not available
More information about the cfe-commits