Bug 359867

Summary: Missing Q_DECLARE_TYPEINFO: QDate
Product: [Developer tools] clazy Reporter: Stephane MANKOWSKI <stephane>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stephane MANKOWSKI 2016-02-27 20:10:33 UTC
Clary returns warnings like on Qt objects used in lists.
Examples:
warning: Missing Q_DECLARE_TYPEINFO: QDate [-Wclazy-missing-typeinfo]
warning: Missing Q_DECLARE_TYPEINFO: QModelIndex [-Wclazy-missing-typeinfo]

Reproducible: Always

Steps to Reproduce:
1. Create a cpp file with
QList<QDate> a;
QVector<QModelIndex> a;

2. Check it with clazy

Actual Results:  
You should have warning saying that Q_DECLARE_TYPEINFO is missing.

Expected Results:  
You should not have these warnings because Q_DECLARE_TYPEINFO are not missing.
Comment 1 Sergio Martins 2016-02-27 20:42:14 UTC
Git commit a3485b0f8b1c7a474fee6c15a943fba1d01ebbd7 by Sergio Martins.
Committed on 27/02/2016 at 20:40.
Pushed by smartins into branch 'master'.

Disable missing-typeinfo, it's incomplete and buggy

Will give it some love soon.

M  +1    -1    CMakeLists.txt
M  +0    -1    README

http://commits.kde.org/clazy/a3485b0f8b1c7a474fee6c15a943fba1d01ebbd7
Comment 2 Sergio Martins 2016-02-29 09:30:51 UTC
Git commit 9c5ee07628fba9f6536ff9acbac78753e2e916c3 by Sergio Martins.
Committed on 28/02/2016 at 23:50.
Pushed by smartins into branch 'master'.

missing-type-info: Don't ignore Q_DECL_TYPEINFO in Qt headers

And re-enable the check. It's working now.

M  +1    -1    CMakeLists.txt
M  +1    -0    checks/missingtypeinfo.h
M  +0    -1    tests/missing-typeinfo/config.json

http://commits.kde.org/clazy/9c5ee07628fba9f6536ff9acbac78753e2e916c3