no_increment: complain when i and j don't have an i++
commit2a1f630acb6f999af1d30fd36a7c59031fdd9a7c
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 12 Jun 2024 11:14:53 +0000 (12 14:14 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Wed, 12 Jun 2024 11:14:53 +0000 (12 14:14 +0300)
tree07de2816af9f80a8f1e733cd8819aab4343ffe13
parentc4321a6e5251fa2d1b8ee7869b967069ace35b0c
no_increment: complain when i and j don't have an i++

You would expect interators to be incremented.  Example bugs look like:

i = 0;
for_each_foo() {
// i++ was accidentally deleted
}
count = i;

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_list.h
check_no_increment.c [new file with mode: 0644]