Bug 354280 - writing-to-temporary: Whitelist some Qt classes
Summary: writing-to-temporary: Whitelist some Qt classes
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: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-23 20:41 UTC by Sergio Martins
Modified: 2015-10-23 22:40 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-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