c++ - uncrustify options for lambda -


my question uncrustify 0.62 , lambdas. uncrustify.cfg options can format code this:

void f1b() {     std::for_each( a, b,                    [ ] ( int& b ) -> foo     {        b += 3;        return(beer);     }                  );  } 

to code this:

void f1b() {    std::for_each(a, b,                  [] (int& b) -> foo                  {                     b += 3;                     return(beer);                  }                  ); } 

?

nb: next lines :

nl_cpp_lambda_leave_one_liners=false nl_cpp_ldef_brace=add sp_cpp_lambda_assign=add 

are in uncrustify.cfg.

thanx.

you might this:

indent_paren_open_brace=true 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -