MISRA Discussion Forums
Naming Conventions in MISRA C 2012 - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: General Questions (https://forum.misra.org.uk/forumdisplay.php?fid=27)
+--- Thread: Naming Conventions in MISRA C 2012 (/showthread.php?tid=1623)



Naming Conventions in MISRA C 2012 - gpotts63 - 21-06-2022

What is the meaning of different naming conventions with rules?
For example, “Rule 2.1: A project shall not contains unreachable code” versus “Rule 5-0-7: There shall be no explicit floating-integral conversions of a cvalue expression”.
It seems some companies that use MISRA support only the decimal point rules, while others support the dashed rules.
What is the difference, and/or why is there a split?


RE: Naming Conventions in MISRA C 2012 - misra-c - 08-02-2023

(21-06-2022, 12:21 PM)gpotts63 Wrote: For example, “Rule 2.1: A project shall not contains unreachable code” versus “Rule 5-0-7: There shall be no explicit floating-integral conversions of a cvalue expression”.

The two different styles relate to the two main software coding guidelines:
  • MISRA C uses the Rule 2.1 style format
  • MISRA C++ uses the Rule 5-0-7 style format.