Bug 353732 - New check to find using iterators on temporary containers
Summary: New check to find using iterators on temporary containers
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Sergio Martins
URL: https://github.com/nyalldawson/clazy/...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 18:51 UTC by Sergio Martins
Modified: 2015-10-10 17:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Martins 2015-10-09 18:51:56 UTC
I need to integrate the above check into crazy.

Reproducible: Always
Comment 1 Sergio Martins 2015-10-10 17:28:49 UTC
Git commit cfc6c46b10adefb05be29f0fc2baafadb42d5dee by Sergio Martins, on behalf of Nyall Dawson.
Committed on 10/10/2015 at 17:14.
Pushed by smartins into branch 'master'.

Add check for calling iterators on temporary containers

CCMAIL: nyall.dawson@gmail.com

M  +1    -0    CMakeLists.txt
A  +23   -0    checks/README-temporaryiterator
A  +109  -0    checks/temporaryiterator.cpp     [License: GPL (v2+) (+Qt exception)]
A  +52   -0    checks/temporaryiterator.h     [License: GPL (v2+) (+Qt exception)]

http://commits.kde.org/clazy/cfc6c46b10adefb05be29f0fc2baafadb42d5dee