Bug 354280

Summary: writing-to-temporary: Whitelist some Qt classes
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sergio Martins 2015-10-23 20:41:25 UTC
To reduce false-positives, only methods starting with "set" are considered.
We should whitelist a bunch of classes, QRect, QPoint, all containers, where we would not check if the method starts with "set".
Comment 1 Sergio Martins 2015-10-23 22:40:31 UTC
Git commit 820ca7eb29e3ecef9f6affcf0ad3b74797468ed2 by Sergio Martins.
Committed on 23/10/2015 at 22:31.
Pushed by smartins into branch 'master'.

writing-to-temporary: Widen the criteria for a bunch of types

For these types we lift the restriction of the method name having to
begin with "set"

M  +14   -4    checks/writingtotemporary.cpp
M  +9    -0    tests/writing-to-temporary/main.cpp
M  +1    -0    tests/writing-to-temporary/test.expected

http://commits.kde.org/clazy/820ca7eb29e3ecef9f6affcf0ad3b74797468ed2