mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
docs/misra: add rule 11.9
Following up from the MISRA C group discussion, add Rule 11.9 to docs/misra/rules.rst. Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Bertrand Marquis <bertrand.marquis@arm.com> Release-acked-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
1 parent
b1c84ab41a
commit
0b5bca91aa
1 file changed
+5
@@ -374,6 +374,11 @@ maintainers if you want to suggest a change.
|
||||
- A cast shall not remove any const or volatile qualification from the type pointed to by a pointer
|
||||
-
|
||||
|
||||
* - `Rule 11.9 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_11_09.c>`_
|
||||
- Required
|
||||
- The macro NULL shall be the only permitted form of null pointer constant
|
||||
-
|
||||
|
||||
* - `Rule 12.5 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_12_05.c>`_
|
||||
- Mandatory
|
||||
- The sizeof operator shall not have an operand which is a function
|
||||
|
||||