Bug 353766 - Find detachments on temporaries made by operator[]
Summary: Find detachments on temporaries made by operator[]
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-10 17:40 UTC by Sergio Martins
Modified: 2015-10-19 22:39 UTC (History)
0 users

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 Sergio Martins 2015-10-10 17:40:27 UTC
For example: getList()[0]

Reproducible: Always
Comment 1 Sergio Martins 2015-10-19 22:39:13 UTC
Git commit 9475e638630ccfcf7923e00113f64d50a94fe9a3 by Sergio Martins.
Committed on 19/10/2015 at 22:38.
Pushed by smartins into branch 'master'.

detaching-temporary: Also warn for operator[]

M  +10   -1    Utils.cpp
M  +10   -8    checks/detachingtemporary.cpp
M  +9    -0    tests/detaching-temporary/main.cpp
M  +3    -0    tests/detaching-temporary/test.expected

http://commits.kde.org/clazy/9475e638630ccfcf7923e00113f64d50a94fe9a3