Summary: | New Q_ENUM check also warns about Q_ENUMS for enums outside a class | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Christian Ehrlicher <Ch.Ehrlicher> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Christian Ehrlicher
2016-08-29 18:45:00 UTC
Ok, the question is - why someone would add Q_ENUM for a enum defined in a namespace. I currently can't see a reason for it but moc does not complain either ... :) Yeah, there's no reason. clazy could give a different warning for this case but the fix isn't trivial since the macro processor isn't connected to the AST, so I'll just close this |