moc wont accept Q_OBJECT in template classes Reproducible: Always Steps to Reproduce: diff --git a/tests/missing-qobject/main.cpp b/tests/missing-qobject/main.cpp index c119429..f55da27 100644 --- a/tests/missing-qobject/main.cpp +++ b/tests/missing-qobject/main.cpp @@ -26,3 +26,8 @@ public: // Warning class QFile; class FwdDecl; + +template <typename T> class DerivedTemplate : public Derived1 +{ +public: +};
Git commit 5b98970f6e21dc22eccee72467e8abbedf391143 by Sergio Martins. Committed on 22/11/2015 at 18:12. Pushed by smartins into branch 'master'. missing-qobject: Don't warn on missing Q_OBJECT in template classes moc doesn't support it M +3 -0 checks/missing-qobject.cpp M +5 -0 tests/missing-qobject/main.cpp http://commits.kde.org/clazy/5b98970f6e21dc22eccee72467e8abbedf391143