improve lazy detection
Submitted by Kristof Szabados
Link to original bug (#496092)
Description
Currently the code smell detecting which formal parameters could be lazy, does not take into account how the formal parameter is used in a function call.
That is the formal parameter is considered read in every case it is passed as actual parameter of a function call or used in an expression.
This is not optimal: if the only usage of a formal parameter is it being passed as an actual parameter to a lazy formal parameter ... than it itself can be a lazy formal parameter.
Version: 5.5.0