qdoc: Add default include dirs to qdoc command line
This change applies to darwin. It adds each include path in the QMAKE_DEFAULT_INCDIRS variable to the qdoc command line with the -I flag for both the prepare and the generate phase. These include paths provide access to the standard c++ and c headers, which clang needs to see. This change should work on all platforms, but it increased the qdoc warning count on the linuxsystem where it was tested, so now it only applies to darwin. Change-Id: I16e2e0d744e2cf68743dc12d39155dda2ece1536 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
559c94ea43
commit
4bdd8d4eca
|
|
@ -78,6 +78,12 @@ doc_command = $$QDOC $$QMAKE_DOCS
|
|||
prepare_docs {
|
||||
prepare_docs.commands += $$doc_command -prepare $$PREP_DOC_INDEXES -no-link-errors $(INCPATH)
|
||||
generate_docs.commands += $$doc_command -generate $$DOC_INDEXES $(INCPATH)
|
||||
darwin {
|
||||
for (incdir, $$QMAKE_DEFAULT_INCDIRS) {
|
||||
prepare_docs.commands += -I$$shell_quote($$incdir)
|
||||
generate_docs.commands += -I$$shell_quote($$incdir)
|
||||
}
|
||||
}
|
||||
prepare_docs.depends += qtattributionsscanner
|
||||
} else {
|
||||
html_docs.commands += $$doc_command $$DOC_INDEXES $(INCPATH)
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ class Q_CORE_EXPORT QVariant
|
|||
static inline QVariant fromValue(const T &value)
|
||||
{ return qVariantFromValue(value); }
|
||||
|
||||
#if defined(Q_CLANG_QDOC) || (QT_HAS_INCLUDE(<variant>) && __cplusplus >= 201703L)
|
||||
#if QT_HAS_INCLUDE(<variant>) && __cplusplus >= 201703L
|
||||
template<typename... Types>
|
||||
static inline QVariant fromStdVariant(const std::variant<Types...> &value)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue