cppcheck
cppcheck copied to clipboard
Suggestion for improvement Increment Boolean
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.
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
Still no reply after more than six months - closing.