1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 16:56:04 +02:00
cdt/qt/org.eclipse.cdt.qt.core
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
..
.settings Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
META-INF Bug 424824: Codan checker for Qt 2014-01-02 21:53:46 -05:00
schema Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
src/org/eclipse/cdt Bug 424824: Codan checker for Qt 2014-01-02 21:53:46 -05:00
templates/project Bug 418406: Qt4 and Qt5 specific HelloWorld project wizards 2013-12-03 18:51:38 -05:00
.classpath Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
.project Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
about.html Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
build.properties Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
plugin.properties Fix Qt plugin's project structure 2013-12-12 11:12:13 -05:00
plugin.xml Bug 424824: Codan checker for Qt 2014-01-02 21:53:46 -05:00
pom.xml Fix Qt plugin's project structure 2013-12-12 11:12:13 -05:00