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).