https://llvm.org/bugs/show_bug.cgi?id=27640
Bug ID: 27640
Summary: clang-format lambda block brace regression with
"BreakBeforeBraces: Allman"
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
clang-format 3.7 correctly formatted the following code:
void x()
{
return something([](auto) -> decltype(auto)
{
something();
something();
});
}
Note the breaks inside the lambda body.
clang-format 3.9 does not respect the Allman setting for lambda bodies:
void x()
{
return something([](auto) -> decltype(auto) {
something();
something();
});
}
I think that version one is the correct hehavior (and is the one I desire).
Please add a flag like "BreakBeforeLambdaBody" in order to accomodate multiple
coding styles.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs