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

Heinrich Janzing <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |[email protected]
         Resolution|WORKSFORME                  |---

--- Comment #9 from Heinrich Janzing <[email protected]> ---
I was a bit surprise to read that this "works fine" for other people, because
clang-format always formatted lambdas using at least three lines for me:

[]
{
}

After some trial and error it turned out this is caused by using
"BreakBeforeBraces: Allman". That makes sense, in a way, but for obvious
reasons it would be preferred to nonetheless allow short or at the very least
empty lambdas on a single line. We have that possibility for functions and it
only seems *more* useful for lambdas.

-- 
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

Reply via email to