Bug 356240

Summary: lambda args by ref
Product: [Developer tools] clazy Reporter: eric.lemanissier
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description eric.lemanissier 2015-12-03 11:59:59 UTC
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
Comment 1 Sergio Martins 2015-12-06 19:58:41 UTC
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