Doc: Hide weak overload template magic from documentation
Hide the 'template magic' to implement Q_WEAK_OVERLOAD from the documentation. So far Q_WEAK_OVERLOAD void foo() lead to template <typename> void foo() in the generated documentation, which is arguably confusing to the uninitiated. And people interested in implementation details & exact overload resolution will arguably just read the .h files themselves. Fixes: QTBUG-104851 Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I5e0b1b337b28e621e6a627241aa8037da0a879a7 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
268ff00ef5
commit
f71aeea932
@ -123,7 +123,6 @@ Cpp.ignoretokens += \
|
|||||||
Q_SVG_EXPORT \
|
Q_SVG_EXPORT \
|
||||||
Q_TESTLIB_EXPORT \
|
Q_TESTLIB_EXPORT \
|
||||||
Q_TYPENAME \
|
Q_TYPENAME \
|
||||||
Q_WEAK_OVERLOAD \
|
|
||||||
Q_WIDGETS_EXPORT \
|
Q_WIDGETS_EXPORT \
|
||||||
Q_WINEXTRAS_EXPORT \
|
Q_WINEXTRAS_EXPORT \
|
||||||
Q_XML_EXPORT \
|
Q_XML_EXPORT \
|
||||||
|
@ -1027,7 +1027,11 @@
|
|||||||
* "Weak overloads" - makes an otherwise confliciting overload weaker
|
* "Weak overloads" - makes an otherwise confliciting overload weaker
|
||||||
* (by making it a template)
|
* (by making it a template)
|
||||||
*/
|
*/
|
||||||
#define Q_WEAK_OVERLOAD template <typename = void>
|
#ifndef Q_CLANG_QDOC
|
||||||
|
# define Q_WEAK_OVERLOAD template <typename = void>
|
||||||
|
#else
|
||||||
|
# define Q_WEAK_OVERLOAD
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If one wants to add functions that use post-C++17 APIs, one needs to:
|
* If one wants to add functions that use post-C++17 APIs, one needs to:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user