]>
CODING_STYLE: Custom type names must be snake-cased by word
authorAlejandro Vallejo <agarciav@amd.com>
Tue, 24 Jun 2025 12:54:34 +0000 (14:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Jun 2025 12:54:34 +0000 (14:54 +0200)
There's the unwritten convention 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@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
CODING_STYLE

index 5644f1697fc7bc6f26912aa33d6136e5ce64e91b..7bf3848444ad79cc9a40c637c00ef0d299142b51 100644 (file)
@@ -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
 -----