[PATCH 2/4] Fix GNU coding style.
Martin Sebor
msebor@gmail.com
Mon Nov 5 17:08:00 GMT 2018
On 11/02/2018 04:37 AM, marxin wrote:
>
> gcc/ChangeLog:
>
> 2018-11-02 Martin Liska <mliska@suse.cz>
>
> * mem-stats.h (mem_alloc_description::get_list): Fix GNU coding
> style.
> * vec.c: Likewise.
I have no preference here or even know what the style guide calls
for (nor have I been able to find it) but I've always assumed
the convention for declaring functions that return pointers (and
variables of pointer types) was
T *func (...);
with a space after the type and before the name) as opposed to
either of:
T* func (...);
or
T * func (...);
The former also appears to be dominant style in GCC.
So I'm mostly just curious: is there a recommended or preferred
style or does it not matter?
Thanks
Martin
More information about the Gcc-patches
mailing list