From 5961dbc0e228bcf4c48bf0b2e69161cd9a468dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 20 Jul 2022 13:21:38 +0200 Subject: [PATCH] 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. Pick-to: 6.4 Change-Id: I9d5dd8b979a84f2fecc582613c2e944bb33eb790 Reviewed-by: Thiago Macieira --- src/corelib/global/qcompilerdetection.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 74f6ebd41e7..e7d3cb0fc73 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -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 +#ifndef Q_CLANG_QDOC +# define QT_POST_CXX17_API_IN_EXPORTED_CLASS template +#else +# define QT_POST_CXX17_API_IN_EXPORTED_CLASS +#endif /* * Warning/diagnostic handling