<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:heinrich.janzing@gmail.com" title="Heinrich Janzing <heinrich.janzing@gmail.com>"> <span class="fn">Heinrich Janzing</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Lack of option to keep short lambda on a single line"
   href="https://llvm.org/bugs/show_bug.cgi?id=24672">bug 24672</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>heinrich.janzing@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WORKSFORME
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Lack of option to keep short lambda on a single line"
   href="https://llvm.org/bugs/show_bug.cgi?id=24672#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Lack of option to keep short lambda on a single line"
   href="https://llvm.org/bugs/show_bug.cgi?id=24672">bug 24672</a>
              from <span class="vcard"><a class="email" href="mailto:heinrich.janzing@gmail.com" title="Heinrich Janzing <heinrich.janzing@gmail.com>"> <span class="fn">Heinrich Janzing</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>