This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 07/22] Remove last cleanups from solib-svr4.c
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 06 Mar 2019 14:17:49 -0700
- Subject: Re: [PATCH v2 07/22] Remove last cleanups from solib-svr4.c
- References: <20190227201849.32210-1-tom@tromey.com> <20190227201849.32210-8-tom@tromey.com> <cf4097f4-1403-b081-2114-0bb34b141e0d@redhat.com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> When passing lambdas as last argument to a function, I think indenting
Pedro> like this reads clearer:
Pedro> auto cleanup = make_scope_exit ([&] ()
Pedro> {
Pedro> svr4_free_library_list (&list->head);
Pedro> });
I agree. I made this change here & in another patch in the series.
Pedro> If others agree, I'd vote for having a similar rule of our own.
Let's do it.
Tom