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

qdoc: Ignore Q_WEAK_OVERLOAD

    XMLWordPrintable

Details

    • f71aeea932 (qt/qtbase/dev) f71aeea932 (qt/tqtc-qtbase/dev) b5dc2f2fef (qt/tqtc-qtbase/6.2) 34751307bf (qt/qtbase/6.4) 34751307bf (qt/tqtc-qtbase/6.4) f46b3e002d (qt/qtbase/6.3) f46b3e002d (qt/tqtc-qtbase/6.3) b2729d3bc1 (qt/tqtc-qtbase/5.15)

    Description

      Q_WEAK_OVERLOAD was introduced in Qt 6 to resolve the conflict between different overloads by marking one of them as 'weak'. Technically, this is done by marking it as a template:

      #define Q_WEAK_OVERLOAD template <typename = void>
      

      qdoc takes this literally, and documents the template type, so

          Q_WEAK_OVERLOAD explicit QXmlStreamReader(const QByteArray &data)
      

      becomes documented as

      template <typename> QXmlStreamReader::QXmlStreamReader(const QByteArray &data)
      

      This is confusing, and it would be better if qdoc would just redefine Q_WEAK_OVERLOAD to empty.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews