MISRA.FOR.COUNTER.MANYFor loop counter is missing, has floating point type, or there is more than one loop counter. MISRA-C++ Rule 6-5-1 (required): A for loop shall contain a single loop-counter which shall not have floating type.This rule is also covered by MISRA.FOR.COUNTER.FLT. RationaleA for loop without exactly one loop-counter is simply a while loop. If this is the desired behaviour, then a while loop is more appropriate. Exampley = 0; for ( x = 0; x < y; x = y++ ) // Non-compliant |