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

qdoc doesn't recognize QAbstractSocket::bind overload

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2
    • None

    Description

      qdoc generates the warning:

      qt.qdoc: Parse source files for "QtNetwork"
      /Users/vohi/qt/dev/qtbase/src/network/socket/qabstractsocket.cpp:1606: (qdoc) warning: clang couldn't find function when parsing \fn bool QAbstractSocket::bind(QHostAddress::SpecialAddress addr, quint16 port, BindMode mode)
      qt.qdoc: Source files parsed for "QtNetwork"
      

      even though that overload is declared in the head, albeit behind

      #if QT_VERSION >= QT_VERSION_CHECK(7,0,0) || defined(Q_CLANG_QDOC)
      

      flags. However, the

      \fn bool QAbstractSocket::bind(quint16 port, BindMode mode)
      

      overload is declared in the same way, and doesn't raise the warning. But that overload is also declared in #else branch, maybe that's why it works (although qdoc shouldn't see that due to the preprocessor flagging).

      Attachments

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

        Activity

          People

            docinfrastructure Documentation Infrastructure Team
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes