MISRA Discussion Forums

Full Version: Naming Conventions in MISRA C 2012
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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.