Bug 353732

Summary: New check to find using iterators on temporary containers
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://github.com/nyalldawson/clazy/commit/e1d08e988ee66bc16abed6655fb86024dc7fd75f
Latest Commit: Version Fixed In:

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