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