| Summary: |
Missing Q_OBJECT warning generates false positives on template classes |
| Product: |
[Developer tools] clazy
|
Reporter: |
Volker Krause <vkrause> |
| Component: |
general | Assignee: |
Sergio Martins <smartins> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
CC: |
smartins
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Compiled Sources | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
http://commits.kde.org/clazy/5b98970f6e21dc22eccee72467e8abbedf391143
|
Version Fixed/Implemented In:
|
|
|
Sentry Crash Report:
|
|
| |
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: +};