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".
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