Download User's Guide
Transcript
BreakInForLoop.rule
Items Enforced
BreakInForLoop.rule
Do not use break in for loops
This rule checks if there are breaks in your for loops.
Reason for rule: Avoiding breaks in the for loop makes your code easier to follow.
Note: This rule is similar to item ecpp_14.
Example
// Avoid break in for loop to make the code easier to follow.
void func() {
for (int i = 0; i < 10; i++) {
// Okay
}
for (int i = 0; i < 10; i++) {
// Violation
if (true) {
break;
}
}
}
229
Related documents
User's Guide
User's Guide
RuleWizard User's Guide
Getting Started with the CodeVisionAVR Extension for Atmel Studio
CodeVisionAVR revision history
Pulse Width Modulation
INFINITI - NISSAN - Advanced Diagnostics USA
Załącznik nr 6 do ZW 15/2007
infiniti - nissan - adusa - Advanced Diagnostics USA
LOGGER ver.4.1. - USER MANUAL