Bug 425102 - [Qt] QtIndex cannot resolve some function calls
Summary: [Qt] QtIndex cannot resolve some function calls
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-other (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 10:38 EST by Andrew Eidsness CLA
Modified: 2020-09-04 15:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eidsness CLA 2014-01-08 10:38:44 EST
The qt plugins have a utility that is used when examining QObject::connect and disconnect function calls.  If the function is called in an unexpected way then the utility fails to resolve it and the function is ignored.

For the non-static versions of connect and disconnect, we expect the function call to look like:

    this->connect( ... )

It fails in either of these cases (when called from within the body of a non-static method):

    connect( ... )
    QObject::connect( ... )

One result of this is that the Codan checker will not examine SIGNAL parameter in:

    class Q : public QObject
    {
    Q_OBJECT
        void f()
        {
            QObject::disconnect( SIGNAL( destroyed() ), this, SLOT( deleteLater() ) );
        }
    };
Comment 1 Andrew Eidsness CLA 2014-01-08 13:00:15 EST
This is fixed in:

    https://git.eclipse.org/r/20399