summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-21 14:22:43 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-21 14:55:54 +0200
commitcf015cd08bc7a977b6bacac3575952a77e0c0cad (patch)
tree537eb1a245e6d40c9c7ee56c1819621dfc6c822e /src/corelib/io
parent75d2cdf2ff274469d80eb31ec7fdcc09180d0ca8 (diff)
Silence qdoc warnings from std::filesystem
We change the declaration of the new APIs using std::filesystem::path for qdoc runs, and need to forward declare it consistently for qdoc builds to avoid a flood of clang warnings when building documentation. Change-Id: Iddcf0ce7d6207b6cc5910790315ab21076bd6ce1 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfile.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/io/qfile.h b/src/corelib/io/qfile.h
index 057e9e12e8..93002318fb 100644
--- a/src/corelib/io/qfile.h
+++ b/src/corelib/io/qfile.h
@@ -47,6 +47,13 @@
#if QT_CONFIG(cxx17_filesystem)
#include <filesystem>
+#elif defined(Q_CLANG_QDOC)
+namespace std {
+ namespace filesystem {
+ class path {
+ };
+ };
+};
#endif
#ifdef open