Iterators defined outside of their loop, a fortiriori when they are defined in a bigger scope than the conditional one where they are in used, get falsely interpreted as “unused variables”.
To Reproduce
Steps to reproduce the behavior:
Open any library/script where an iterator is declared outside of the loop(s) it is intended for.
Run Ctrlpp Check for that specific library/script.
Click on the error tab.
A "unused variable" error message is to be seen.
Expected behavior
The program should be able to interpret the pre-declaration of an iterator as a legitimate operation. Any variable playing the role of an iterator should not be described as an "unused" one.
Describe the bug
Iterators defined outside of their loop, a fortiriori when they are defined in a bigger scope than the conditional one where they are in used, get falsely interpreted as “unused variables”.
To Reproduce Steps to reproduce the behavior:
Expected behavior The program should be able to interpret the pre-declaration of an iterator as a legitimate operation. Any variable playing the role of an iterator should not be described as an "unused" one.