diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-02-09 14:18:35 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2021-02-15 13:16:54 +0000 |
commit | 170239364406b70593f822544b705d816afd86e3 (patch) | |
tree | 5a1e9c4315ee854e7ed6cc2da1544bf025b3d9cc /cmake/QtHeadersClean.cmake | |
parent | 6bdffefaa89eacd306465c8e3bf1ca894ca25a98 (diff) |
Run headers_clean check with C++20 (gcc, clang)
The headers are already somewhat tested with C++17 in the regular
build. So let's try in the headers_clean check with C++20 instead.
Using C++20 with MSVC 19.28 doesn't work yet though:
corelib/tools/qalgorithms.h(247): error C2039: 'popcount': is not a member of 'std'
corelib/tools/qhashfunctions.h(311): note: see declaration of 'std'
corelib/tools/qalgorithms.h(247): error C3861: 'popcount': identifier not found
...
Task-number: QTQAINFRA-4242
Change-Id: I1b48bcb9656fe1587fe03d3a17e3484c693aa295
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtHeadersClean.cmake')
-rw-r--r-- | cmake/QtHeadersClean.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtHeadersClean.cmake b/cmake/QtHeadersClean.cmake index 8abb34ff9e..b6706f571d 100644 --- a/cmake/QtHeadersClean.cmake +++ b/cmake/QtHeadersClean.cmake @@ -144,8 +144,8 @@ function(qt_internal_add_headers_clean_target endif() endif() - # Use strict mode C++17, with no GNU extensions (see -pedantic-errors above). - list(APPEND hcleanFLAGS -std=c++17) + # Use strict mode C++20, with no GNU extensions (see -pedantic-errors above). + list(APPEND hcleanFLAGS -std=c++2a) set(cxx_flags ${CMAKE_CXX_FLAGS}) |