[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4 01/12] CODING_STYLE: Custom type names must be snake-cased by word.
On Fri, 20 Jun 2025, Alejandro Vallejo wrote: > There's the unwritten convention in x86 of splitting type names using > underscores. Add such convention to the CODINNG_STYLE to make it > common and less unwritten. > > Signed-off-by: Alejandro Vallejo <agarciav@xxxxxxx> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> > --- > v4: > * Move new paragraph into a new "Identifiers" section > --- > CODING_STYLE | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/CODING_STYLE b/CODING_STYLE > index 5644f1697f..7bf3848444 100644 > --- a/CODING_STYLE > +++ b/CODING_STYLE > @@ -113,6 +113,12 @@ Braces should be omitted for blocks with a single > statement. e.g., > if ( condition ) > single_statement(); > > +Identifiers > +----------- > + > +When giving names to identifiers (variables, functions, constants...), > separate > +words using underscores (for example, use "my_foo" instead of "myfoo"). > + > Types > ----- > > -- > 2.43.0 >
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |