我的问题是关于Uncrustify 0.62和lambdas。哪些uncrustify.cfg选项可以像这样格式化代码:
void f1b()
{
std::for_each( a, b,
[ ] ( int& b ) -> foo
{
b += 3;
return(beer);
}
);
}要像这样编写代码:
void f1b()
{
std::for_each(a, b,
[] (int& b) -> foo
{
b += 3;
return(beer);
}
);
}?
注意:现在下一行:
nl_cpp_lambda_leave_one_liners=false
nl_cpp_ldef_brace=add
sp_cpp_lambda_assign=add都在uncrustify.cfg中。
谢谢。
发布于 2016-10-07 18:15:54
你可能会喜欢这样:
indent_paren_open_brace=truehttps://stackoverflow.com/questions/35230185
复制相似问题