[clazy] [Bug 375239] New: connect-non-signal false positive when using macros to declare signals
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Wed Jan 18 14:27:25 GMT 2017
https://bugs.kde.org/show_bug.cgi?id=375239
Bug ID: 375239
Summary: connect-non-signal false positive when using macros to
declare signals
Product: clazy
Version: unspecified
Platform: MacPorts Packages
OS: OS X
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: nicolas.kniebihler at dualo.org
CC: smartins at kde.org
Target Milestone: ---
connect-non-signal returns "MyClass::mySignal is not a signal" when we have
something like this:
#define DECLARE_SIGNAL(name) \
Q_SIGNALS: \
void name();
class MyClass
{
Q_OBJECT
public:
explicit MyClass(QObject *parent = 0);
DECLARE_SIGNAL(mySignal)
public slots:
void mySlot();
}
MyClass::MyClass(QObject *parent) : QObject(parent)
{
connect(this, &MyClass::mySignal, this, &MyClass::mySlot);
}
Detected on commit: 230c4a8299e1dfd7a505cbba681d4ba1c688c353
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list