From 170239364406b70593f822544b705d816afd86e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Tue, 9 Feb 2021 14:18:35 +0100 Subject: [PATCH] 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 --- cmake/QtHeadersClean.cmake | 4 ++-- 1 file 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})