Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133371

QDoc doesn't handle anonymous enums in headers

    XMLWordPrintable

Details

    • 98f2cfe37 (dev)
    • DaVinci 113, DaVinci 114

    Description

      Consider the following code

       

      #include <QObject>
      
      /*!
       * \class Foo
       *
       * Yo
       */
      class Foo : public QObject
      {
          Q_OBJECT
          /*!
           * \value Foo
           * \value Bar
           */
          enum {
              Foo,
              Bar,
          };
      }; 

      qdoc emits "foo.h:12: (qdoc) warning: Cannot tie this documentation to anything" and the enum isn't documented in the HTML result

       

      Attachments

        For Gerrit Dashboard: QTBUG-133371
        # Subject Branch Project Status CR V

        Activity

          People

            treinio Topi Reiniö
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes