[clazy] [Bug 367971] New: New Q_ENUM check also warns about Q_ENUMS for enums outside a class

Christian Ehrlicher via KDE Bugzilla bugzilla_noreply at kde.org
Mon Aug 29 19:45:00 BST 2016


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

            Bug ID: 367971
           Summary: New Q_ENUM check also warns about Q_ENUMS for enums
                    outside a class
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: Ch.Ehrlicher at gmx.de
                CC: smartins at kde.org

-----------------------------------
#include <QObject>

//class Foo 
namespace Foo 
{
//  Q_OBJECT
  enum Bar {
  };

  Q_ENUM ( Bar )
}
//;
-----------------------------------
Within this code, clazy warns about Q_ENUM usage but Q_ENUMS does not work here
since there's no parent class which is derived from QObject and so no
QMetaObject ...

Did not find a simple solution for this problem so I had to write a bug report
:)

Reproducible: Always

Steps to Reproduce:
see details

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



More information about the Unassigned-bugs mailing list