[clazy] [Bug 355691] New: Missing Q_OBJECT warning generates false positives on template classes

Volker Krause via KDE Bugzilla bugzilla_noreply at kde.org
Sat Nov 21 13:32:31 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=355691

            Bug ID: 355691
           Summary: Missing Q_OBJECT warning generates false positives on
                    template classes
           Product: clazy
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: vkrause at kde.org

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:
+};

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list