[clazy] [Bug 410655] New: Suggests to use Q_ENUM when you can't use it
Albert Astals Cid
bugzilla_noreply at kde.org
Tue Aug 6 16:03:26 BST 2019
https://bugs.kde.org/show_bug.cgi?id=410655
Bug ID: 410655
Summary: Suggests to use Q_ENUM when you can't use it
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: aacid at kde.org
CC: smartins at kde.org
Target Milestone: ---
clazy 1.5
With this sample code clazy will say
#include <QObject>
enum class Status
{
U,
A,
P,
R
};
Q_ENUMS(Status);
int main(int argc, char **argv)
{
}
main.cpp:11:1: warning: Use Q_ENUM instead of Q_ENUMS [-Wclazy-qenums]
Q_ENUMS(Status);
but you can't use Q_ENUM in this situation since Q_ENUM doesn't work outside of
a QObject
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list