File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 5959 <reflection>
6060 <call arg =" 2" >invokeMethod</call>
6161 </reflection>
62- <define name =" SIGNAL(X)" value =" # X" />
63- <define name =" SLOT(X)" value =" # X" />
62+ <define name =" SIGNAL(X)" value =" X" />
63+ <define name =" SLOT(X)" value =" X" />
6464 <!-- T qAbs(const T &t) -->
6565 <function name =" qAbs" >
6666 <pure/>
Original file line number Diff line number Diff line change @@ -811,4 +811,18 @@ struct BQObject_missingOverride { // #13406
811811
812812struct DQObject_missingOverride : BQObject_missingOverride {
813813 Q_OBJECT
814- };
814+ };
815+
816+ namespace {
817+ class TestUnusedFunction : public QObject { // #13236
818+ TestUnusedFunction ();
819+ // cppcheck-suppress functionStatic
820+ void doStuff ();
821+ };
822+
823+ TestUnusedFunction::TestUnusedFunction () {
824+ QObject::connect (this , SIGNAL (doStuff ()), SLOT (doStuff ()));
825+ }
826+
827+ void TestUnusedFunction::doStuff () {} // Should not warn here with unusedFunction
828+ }
You can’t perform that action at this time.
0 commit comments