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
Post a Comment