A new check could be added to check arguments passing to lambda, the same way it is already done for functions when using -Wclazy-function-args-by-ref Reproducible: Always
Git commit c15ac5284776d95f981a3cf80f9c06eee99ef159 by Sergio Martins. Committed on 06/12/2015 at 19:55. Pushed by smartins into branch 'master'. function-args-by-ref: Also support lambdas Lambdas weren't being taken into account. M +14 -4 checks/functionargsbyref.cpp M +3 -0 checks/functionargsbyref.h M +3 -0 tests/function-args-by-ref/config.json A +16 -0 tests/function-args-by-ref/lambdas.cpp [License: UNKNOWN] * A +2 -0 tests/function-args-by-ref/lambdas.cpp.expected The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. http://commits.kde.org/clazy/c15ac5284776d95f981a3cf80f9c06eee99ef159