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: unassignedclangb...@nondot.org Reporter: vittorio.ro...@outlook.com CC: djas...@google.com, kli...@google.com, llvm-bugs@lists.llvm.org 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 llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs