[PATCH] D44609: [Clang-Format] New option BeforeLambdaBody to manage lambda line break inside function parameter call (in Allman style)
Christophe Calmejane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 4 00:20:52 PDT 2018
christophe-calmejane added a comment.
Hi,
consider the following code
myFunc([](int x) {
if (x)
call();
});
When activating your BeforeLambdaBody option, it changes the code to this (breaking the start of the lambda to a new line)
myFunc(
[](int x)
{
if (x)
call();
});
Another issue if I declare the lambda as noexcept, clang-format changes the code to this (looks like it's not detecting and applying your option):
myFunc([](int x) noexcept {
if (x)
call();
});
Repository:
rC Clang
https://reviews.llvm.org/D44609
More information about the cfe-commits
mailing list