[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 03/14] CODING_STYLE: Custom type names must be snake-cased by word.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <agarciav@xxxxxxx>
  • Date: Fri, 13 Jun 2025 17:13:12 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Bto0Sue9jzjcaEeJFmEWkgGlcmxgs86j5hGDpqnCvg8=; b=PlES03UWbQco7cdqDrNG+ROeqhAZ0lBYiH6kB6t+CFDMzWidrwSIezKdSSkS3uGzm6C13WT/98htxpC5Y9Ux1p5fHL1eibXoNmY/Y30zeiyYNmpqYQpC+rY/4EUP6/HH4j4vsnr9wCO/ldMIAW3zfUCJ0SFRCf/WOby5WzfLTBcHPguvlyHk18BBUyiXv01KKzGpnT3iK0676tCdsb+t74bw5LCpHWhj6mqIWxziWjnYCiwyjIqIY2TNVA9Ykd+f09dBMfbDUGzRPwQPjyu2grfH4iQSkpVmqOD3hcnAfFi4AI5j4UM+qqp57CklTDwnj2G37ojGLqqwLwk/x1y05Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qAmIoKvttO5f+kfpHTQxmQKfBQDFx6k0p393NHD5uEa5cpTgivp9HJzNmwUrME8CJrYyc3d8SVSEPkK633Ilc2os/pF8YuA3sjJtjGRTqAGsxJ/ZqpyLh2Q3pCxNEwJzxsCrMf3Y9598+t+SFUBQtKy9mF4ZcR/2P4SHdgD2qelrKUgKPjPCb8WiY6T5RTzIYeBehlnxfQO2URJqv6pQmTsZVD5VQ/2VsdSEhB40jQ8cNSfmXXA4Yp0h/ffhdXYSIayBCYpVyMVgJTHSX0f6AVEu6iLF2jUNV4EYNR3Cp56LGHoBMQxY+KGis7qEd+M+dllOtPhvxfn5PU2chPbq4w==
  • Cc: Alejandro Vallejo <agarciav@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 13 Jun 2025 15:16:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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>
---
 CODING_STYLE | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CODING_STYLE b/CODING_STYLE
index 5644f1697f..e91ef7b3ca 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -126,6 +126,9 @@ register).
 Especially with pointer types, whenever the pointed to object is not
 (supposed to be) modified, qualify the pointed to type with "const".
 
+When defining types, split its words using underscores (e.g: prefer my_foo to
+myfoo).
+
 Comments
 --------
 
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.