[clazy] [Bug 359000] new check: warn about unused Qt objects

Nyall Dawson via KDE Bugzilla bugzilla_noreply at kde.org
Thu Feb 18 00:06:40 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=359000

--- Comment #3 from Nyall Dawson <nyall.dawson at gmail.com> ---
Here's a simple test case:

#include <QVariant>
#include <QIcon>

int main(int, char **)
{
    QString string; //no warning
    QList<int> list; //no warning
    QVariant var; //no warning
    QIcon i; //no warning

    int num; //warning
}

building this with clang 3.7 warns only about the unused int variable, not the
unused QString/QList/QVariant etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list