[llvm-bugs] [Bug 25018] short lambda expressions don't mix well with clang-format's interpretation of Allman braces

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 6 05:09:57 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25018

Daniel Jasper <djasper at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #4 from Daniel Jasper <djasper at google.com> ---
Hm. It seems to be doing this already:

$ printf 'void f() {foo([&]() { f(i); });}' | bin/clang-format
-style="{BasedOnStyle: LLVM, BreakBeforeBraces: Allman}"
void f()
{
  foo([&]() { f(i); });
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151006/7345f34b/attachment.html>


More information about the llvm-bugs mailing list