File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 59
59
<reflection>
60
60
<call arg =" 2" >invokeMethod</call>
61
61
</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" />
64
64
<!-- T qAbs(const T &t) -->
65
65
<function name =" qAbs" >
66
66
<pure/>
Original file line number Diff line number Diff line change @@ -811,4 +811,18 @@ struct BQObject_missingOverride { // #13406
811
811
812
812
struct DQObject_missingOverride : BQObject_missingOverride {
813
813
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