All of
 help / color / mirror / Atom feed
From: Stefano Stabellini <>
Subject: [PATCH] docs/misra/rules.rst: add Rule 16.2
Date: Thu, 7 Dec 2023 16:18:00 -0800 (PST)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2312071612330.1265976@ubuntu-linux-20-04-desktop> (raw)

Signed-off-by: Stefano Stabellini <>

diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
index 2b570af0e0..7cb9544a96 100644
--- a/docs/misra/rules.rst
+++ b/docs/misra/rules.rst
@@ -469,6 +469,15 @@ maintainers if you want to suggest a change.
      - In addition to break, also other flow control statements such as
        continue, return, goto are allowed.
+   * - `Rule 16.2 <>`_
+     - Required
+     - A switch label shall only be used when the most closely-enclosing
+       compound statement is the body of a switch statement
+     - The x86 emulator (xen/arch/x86/x86_emulate*) is exempt from
+       compliance with this rule. Efforts to make the x86 emulator
+       adhere to Rule 16.2 would result in increased complexity and
+       maintenance difficulty, and could potentially introduce bugs. 
    * - `Rule 16.7 <>`_
      - Required
      - A switch-expression shall not have essentially Boolean type

             reply	other threads:[~2023-12-08  0:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-08  0:18 Stefano Stabellini [this message]
2023-12-15 10:09 ` [PATCH] docs/misra/rules.rst: add Rule 16.2 Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.22.394.2312071612330.1265976@ubuntu-linux-20-04-desktop \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.