MISRA Discussion Forums

Full Version: Rules 6-5-1 to 6-5-6
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i was under the impression that these rules apply to for loops only, as all examples show only for loops.
I recently ran across a static analyzer, which applied these rules to while loops too.
Is this intended by MISRA?
Thanks in advance.
6-5-1 only applies to for loops, arguably 6-5-2 to 6-5-6 may apply to while loops as well.

These rules are under consideration in light of this and MISRA C:2012's approach