Rule 6-6-3 in while-loops

Moderators: david ward, misra cpp

Post Reply
jungsun.goh
Posts: 2
Joined: Mon Feb 13, 2017 12:18 am
Company: LG Electronics

Rule 6-6-3 in while-loops

Post by jungsun.goh » Tue Oct 29, 2019 7:00 am

Dear MISRA members,

Regarding the rule 6-6-3:
Does this rule only apply to for-loops or does it also apply to while-loops?

For references, the static analysis tool, Coverity reports a 6-6-3 rule violation when 'continue' statement is used in a while-loop.

Best Regards,
Goh

Post Reply

Return to “6.6 Statements (C++)”