diff --git a/doc/global/qt-cpp-defines.qdocconf b/doc/global/qt-cpp-defines.qdocconf index c2a267d08e8..b31cec2f0d1 100644 --- a/doc/global/qt-cpp-defines.qdocconf +++ b/doc/global/qt-cpp-defines.qdocconf @@ -123,7 +123,6 @@ Cpp.ignoretokens += \ Q_SVG_EXPORT \ Q_TESTLIB_EXPORT \ Q_TYPENAME \ - Q_WEAK_OVERLOAD \ Q_WIDGETS_EXPORT \ Q_WINEXTRAS_EXPORT \ Q_XML_EXPORT \ diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 5370e258808..74f6ebd41e7 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -1027,7 +1027,11 @@ * "Weak overloads" - makes an otherwise confliciting overload weaker * (by making it a template) */ -#define Q_WEAK_OVERLOAD template +#ifndef Q_CLANG_QDOC +# define Q_WEAK_OVERLOAD template +#else +# define Q_WEAK_OVERLOAD +#endif /* * If one wants to add functions that use post-C++17 APIs, one needs to: