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

[PATCH v2 1/3] docs/misra/rules.rst: add rule 16.6 and 20.12


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Date: Tue, 13 Feb 2024 14:33:32 -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=p3zfWGoUqrVwRJH/yoaYwBvU4X2LEZOeMLmtpjXSpRM=; b=SjHTdDUzkwzHQZjvwfqQ4qPXYc84OZrSMpTuFJDKStvNHZCTy/8UZOuCJSu9FDF6j3tO5ZxfZxEsO0F3DzbJqVpMwqswD35xsAcgyPNIS9aJ3wDZJ9pOakEbJxBtKzDdfjPCW+biA9yPBTVH3nLdkJ8d9ZtRBWvS7WUz2GBM5IJ7DuCiPh6I7rlkEO7jx+EfFynPhXbX/NGkRWYv+y9ezvGdtULW/akYoLsRZ4//NZEEVBCvXz6yFvzE6pLTVq4dl6QmMJ1jRja/A9MFhdJUyrPoxwFuRXC/mhBQGOob/M5LXq9f0NVMdlAVzLUpxchWwMPRAgmgBRVf6ceMqb5pKg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpUVo+0Ov3DJce4tEQemvjKriQZTUEv2ohOAFSqeQu41NBH3t4ui2ybyzAacf6qOD0iID1GMW12hoReM1jo3K2WgfU38OzG8xaarYZkIWI7R8cABj7cYTmAQvSZCbgkiZT5NtBC8Edl/wjR4/nPTzWMXS8IaKgBFMJx0aVabVqfQGvJ7HP7iAx8+DMf9Bp53pkQPb8GqBjWy5jUhzANEzSqzpPiK0ohHxct7KqjhCLt4ci4NT9Z7w8vCNSO9zVLLXF/nj0J26f836LFo4Ka+RSkONO3sy2maVaiRlB2emzj/k1VEQPCkNc+sq5eXvTv6QVLG3F+0ldUhSA0SO4VeNA==
  • 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:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
---
 docs/misra/rules.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
index 182331089d..c185366966 100644
--- a/docs/misra/rules.rst
+++ b/docs/misra/rules.rst
@@ -478,6 +478,12 @@ maintainers if you want to suggest a change.
        adhere to Rule 16.2 would result in increased complexity and
        maintenance difficulty, and could potentially introduce bugs. 
 
+   * - `Rule 16.6 
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_16_06.c>`_
+     - Required
+     - Every switch statement shall have at least two switch-clauses
+     - Single-clause switches are allowed when they do not involve a
+       default label.
+
    * - `Rule 16.7 
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_16_07.c>`_
      - Required
      - A switch-expression shall not have essentially Boolean type
@@ -554,6 +560,13 @@ maintainers if you want to suggest a change.
        evaluation
      -
 
+   * - `Rule 20.12 
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_20_12.c>`_
+     - A macro parameter used as an operand to the # or ## operators,
+       which is itself subject to further macro replacement, shall only
+       be used as an operand to these operators
+     - Required
+     - Variadic macros are allowed to violate the rule.
+
    * - `Rule 20.13 
<https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_20_13.c>`_
      - Required
      - A line whose first token is # shall be a valid preprocessing
-- 
2.25.1




 


Rackspace

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