Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28120

clazy-fully-qualified-moc-types doesn't detect some cases

    XMLWordPrintable

Details

    Description

      In the code below, clazy correctly flags foo() but doesn't flag bar()

      #include <QObject>
      
      namespace MyNS
      {
      
      class MyClass : public QObject
      {
          Q_OBJECT
      public:    
          explicit MyClass(QObject *parent = nullptr);
      
          enum MyEnum
          {
              Alpha,
              Bravo,
              Charlie
          };
          Q_ENUM(MyEnum)
      
      public slots:
          void foo(MyEnum value);
          void bar(MyClass::MyEnum value);
          void baz(MyNS::MyClass::MyEnum value);
      };
      
      }
      

      Attachments

        Activity

          People

            hjk hjk
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: