Bug 359867 - Missing Q_DECLARE_TYPEINFO: QDate
Summary: Missing Q_DECLARE_TYPEINFO: QDate
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-27 20:10 UTC by Stephane MANKOWSKI
Modified: 2016-02-29 09:30 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 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