1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00
cdt/qt
Andrew Eidsness 70f50274b4 Bug 424824: Codan checker for Qt
This implements a Codan checker for QObject::connect and disconnect
function calls.  There are several overloads for each function, but the
basic call looks like:

    Q * q;
    QObject::connect( q, SIGNAL( sign() ), q, SLOT( slot() ) );

This function calls requires that Q have a Qt signal called sign and a
Qt slot called slot, e.g.,

    class Q : public QObject
    {
    Q_OBJECT
    Q_SIGNAL void sign();
    Q_SLOT   void slot();
    };

The Qt checker raises a warning if either condition is not true.

It also raises a warning for SIGNAL or SLOT expansions without a
parameter.

Change-Id: If68a5bcdabb3f118801675e46ae926e6a250378a
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20231
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-02 21:53:46 -05:00
..
org.eclipse.cdt.qt-feature Fix version number in qt-feature 2014-01-02 14:29:50 -05:00
org.eclipse.cdt.qt.core Bug 424824: Codan checker for Qt 2014-01-02 21:53:46 -05:00
org.eclipse.cdt.qt.tests Bug 424499: Find References does not work for Qt signals and slots 2014-01-02 21:49:38 -05:00
org.eclipse.cdt.qt.ui Content assistant for Qt elements 2013-12-12 14:05:53 -05:00