>>>>> "Jason" == Jason Merrill via Gcc <gcc@gcc.gnu.org> writes:

Jason> I think we probably want the same formatting for lambdas in function
Jason> argument lists, e.g.

Jason> algorithm ([] (parms)
Jason>   {
Jason>     return foo;
Jason>   });

Jason> Any other opinions?

FWIW gdb did pretty much this same thing.  Our rules are documented
here:

https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards#Indentation_of_lambdas_as_parameters

There's a special case in here where a call takes a single lambda as the
last argument -- gdb indents that in a more block-like way.

Tom

Reply via email to