Bug 354974

Summary: new check: missing Q_OBJECT macros
Product: [Developer tools] clazy Reporter: Nyall Dawson <nyall.dawson>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: wishlist CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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!