Bug 356240 - lambda args by ref
Summary: lambda args by ref
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-03 11:59 UTC by eric.lemanissier
Modified: 2015-12-06 19:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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