[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/3] docs/misra/rules.rst: add rule 5.5
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
- Date: Tue, 13 Feb 2024 14:33:33 -0800
- 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=arcselector9901; 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=cIqzI8kYaY2Zo0nCOY7w4aQD8+SXQqH7qpdvGMs6SHo=; b=nCTjsaxSXnPvX0cxEgGQghEbSaTF82yRvL5Qd+ieWIBUKp9/bgFK34ARPn/t+PTqx53Vji4OqgcmEuwt5NDXxVZCNvootdevI3zs5+tUuxdDoST5+tgDBbBevEytpK0ZJRrECV3r7pdYEN8pvcCf6hf73vWSRH+I8sBfwtKH4yH6+DMdOkSYIF2KIN5/TRFNJ/eMysjAq536Fo0cT+4xtF9Q8Du9oc4gnV7u2+WgtGqnmW8bKTm3sVpH7vRNF+aMisFgxit20gkH73hwbgLwOMN+Gw+wNsZG/N56fk/ehZjgOPuPTeDFFEo8ILNOiVQg1cwBZl4RdoGxcMZzIB1BhQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KLTmGALbAyL+wry9LrcYzL0YwM1WbKDxmGMJXU11NW2l3zY3jeZAi4u+b7yy5wG33wT2Nt1R5KxCG7apn3Kg5gvw1DEFKpUljtrikZu3OXsx3TrfW/ZBUg/OjS2JhgeDVZD05nJUrKe7nTe333hi9o//G3KuytcPHAIjhACRU8bFT0DzkMF8FjqAKfvjDu5v96lVYQOPaAGCHwy2w9hQagDcgCFaLaGfQnEYVV2NUN1rFpQ3tUJ5tCLaJ6kV3idRGnrBmBB1+AC8apR5lX/2EW/alzB1BIgrbuOYhdSkIdsIZx7jlk7HKdwucWT7j/Ai/mj10Rj3j6entrKYw4tMVQ==
- Cc: <stefano.stabellini@xxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <george.dunlap@xxxxxxxxxx>, <julien@xxxxxxx>, <bertrannd.marquis@xxxxxxx>, <roger.pau@xxxxxxxxxx>, <roberto.bagnara@xxxxxxxxxxx>, <federico.serafini@xxxxxxxxxxx>
- Delivery-date: Tue, 13 Feb 2024 22:33:45 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
---
docs/misra/rules.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
index c185366966..931158b354 100644
--- a/docs/misra/rules.rst
+++ b/docs/misra/rules.rst
@@ -181,6 +181,12 @@ maintainers if you want to suggest a change.
headers (xen/include/public/) are allowed to retain longer
identifiers for backward compatibility.
+ * - `Rule 5.5
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_05_05.c>`_
+ - Required
+ - Identifiers shall be distinct from macro names
+ - Clashes between function-like macros and non-callable entities
+ are allowed. The pattern #define x x is also allowed.
+
* - `Rule 5.6
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_05_06.c>`_
- Required
- A typedef name shall be a unique identifier
--
2.25.1
|