Open fmorgner opened 6 years ago
CCGLator/GSLator should warn from possibly undesired effects in code such as this:
void fun() { for(int i = 0; i < 42; ++i) { if(some_weird_condition) { --i; } } }
No warning is issued, since there are no checks in place.
Cevelop 1.9.1 with current beta plugins.
I am sure there is a MISRA/AUTOSAR rule about such multiple changes of a loop index. Need to look it up
Expected Behavior
CCGLator/GSLator should warn from possibly undesired effects in code such as this:
Actual Behavior
No warning is issued, since there are no checks in place.
Cevelop Version, Operating System and Compiler
Cevelop 1.9.1 with current beta plugins.