cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

Suggestion for improvement Increment Boolean

Open rmaman4 opened this issue 3 years ago • 1 comments

This is an existing checker that was made to find cases where the operator "++" is used on such variables. We have improved this checker so it will work for more cases and more arithmetic operations on boolean variable.

rmaman4 avatar May 31 '22 13:05 rmaman4

there are ci failures.

/__w/cppcheck/cppcheck/lib/checkbool.cpp:55:30: error: use nullptr [modernize-use-nullptr,-warnings-as-errors]
    const Token* first_var = NULL;
                             ^~~~
                             nullptr
/__w/cppcheck/cppcheck/lib/checkbool.cpp:56:31: error: use nullptr [modernize-use-nullptr,-warnings-as-errors]
    const Token* second_var = NULL;
                              ^~~~
                              nullptr

danmar avatar Jun 03 '22 15:06 danmar

Still no reply after more than six months - closing.

firewave avatar Jan 21 '23 15:01 firewave