Doc: Hide template magic for MSVC from documentation

QT_POST_CXX17_API_IN_EXPORT_CLASS (introduced in commit e996253774)
works around a deficiency of MSVC by marking affected methods as
templated. Anyhow, this doesn't need to be reflected in the
documented API.

Change-Id: I9d5dd8b979a84f2fecc582613c2e944bb33eb790
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 5961dbc0e228bcf4c48bf0b2e69161cd9a468dbf)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Kai Köhne 2022-07-20 13:21:38 +02:00 committed by Qt Cherry-pick Bot
parent a8c0088b01
commit 4efe690a97

View File

@ -1051,7 +1051,11 @@
* The workaround: declare such functions as function templates.
* (Obviously a function template does not need this marker.)
*/
#define QT_POST_CXX17_API_IN_EXPORTED_CLASS template <typename = void>
#ifndef Q_CLANG_QDOC
# define QT_POST_CXX17_API_IN_EXPORTED_CLASS template <typename = void>
#else
# define QT_POST_CXX17_API_IN_EXPORTED_CLASS
#endif
/*
* Warning/diagnostic handling