From a6ff11cea86b824b71183904b445b9c3de4a917c Mon Sep 17 00:00:00 2001 From: offa <8887756+offa@users.noreply.github.com> Date: Thu, 26 Feb 2026 21:33:46 +0100 Subject: [PATCH 1/2] Add Clang 22 CI build --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c7f8a8..cafdeca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: - gcc:13 - gcc:12 - gcc:11 + - clang:22 - clang:21 - clang:20 - clang:19 From 31446bc36b6f3de19656563c56933e15aae38b98 Mon Sep 17 00:00:00 2001 From: offa <8887756+offa@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:19:18 +0100 Subject: [PATCH 2/2] Workaround Clang 22 issue --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1793bd3..5d6ab01 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,6 +6,11 @@ function(add_test_suite name) add_executable(${name} ${name}.cpp) target_link_libraries(${name} PRIVATE ScopeGuard Catch2::Catch2WithMain trompeloeil::trompeloeil) add_test(${name} ${name}) + + # Workaround for catch2 #3076 + if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "22") + target_compile_options(${name} PRIVATE -Wno-c2y-extensions) + endif() endfunction()