title: uncrustify options for lambda
body: <p>My question is about Uncrustify 0.62 and lambdas. What uncrustify.cfg options can format code like this:</p>
  
  <pre><code>void f1b()
  {
      std::for_each( a, b,
                     [ ] ( int&amp; b ) -&gt; foo
      {
         b += 3;
         return(beer);
      }
                   );
  
  }
  </code></pre>
  
  <p>to code like this:</p>
  
  <pre><code>void f1b()
  {
     std::for_each(a, b,
                   [] (int&amp; b) -&gt; foo
                   {
                      b += 3;
                      return(beer);
                   }
                   );
  }
  </code></pre>
  
  <p>? </p>
  
  <p>NB: Now next lines :</p>
  
  <pre><code>nl_cpp_lambda_leave_one_liners=false
  nl_cpp_ldef_brace=add
  sp_cpp_lambda_assign=add
  </code></pre>
  
  <p>are in uncrustify.cfg.</p>
  
  <p>Thanx.</p>