From cf015cd08bc7a977b6bacac3575952a77e0c0cad Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 21 Sep 2020 14:22:43 +0200 Subject: [PATCH] Silence qdoc warnings from std::filesystem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/corelib/io/qfile.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/corelib/io/qfile.h b/src/corelib/io/qfile.h index 057e9e12e87..93002318fbd 100644 --- a/src/corelib/io/qfile.h +++ b/src/corelib/io/qfile.h @@ -47,6 +47,13 @@ #if QT_CONFIG(cxx17_filesystem) #include +#elif defined(Q_CLANG_QDOC) +namespace std { + namespace filesystem { + class path { + }; + }; +}; #endif #ifdef open