Bug 354974 - new check: missing Q_OBJECT macros
Summary: new check: missing Q_OBJECT macros
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-11-07 03:24 UTC by Nyall Dawson
Modified: 2015-11-21 11:26 UTC (History)
1 user (show)

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 Nyall Dawson 2015-11-07 03:24:21 UTC
I'd love to see a new check for any missing Q_OBJECT macros. Krazy has a similar check, but it can only detect missing macros on classes which directly inherit from QObject.
Comment 1 Sergio Martins 2015-11-21 10:22:34 UTC
Git commit dafbb44df049bfc29bb3b187cc30d93b5517c063 by Sergio Martins.
Committed on 21/11/2015 at 10:21.
Pushed by smartins into branch 'master'.

missing-qobject: Document that you need clang >= 3.7

M  +2    -0    checks/README-missing-qobject

http://commits.kde.org/clazy/dafbb44df049bfc29bb3b187cc30d93b5517c063
Comment 2 Nyall Dawson 2015-11-21 11:26:36 UTC
Thank you so much - this check has already identified a number of issues in my project!