From 4cd95dac6547b768d0aac275fe3f85c69580a638 Mon Sep 17 00:00:00 2001 From: Andreas Fertig Date: Sat, 24 Oct 2026 15:38:22 +0200 Subject: [PATCH] Switched to Clang 23 --- .github/workflows/ci.yml | 62 +++++++++---------- CMakeLists.txt | 7 ++- scripts/prepare-release.py | 4 +- tests/ClassInlineInitTest.expect | 2 +- tests/ClassOperatorHandler5Test.expect | 6 +- tests/EduCfrontTestLifeTime2.cerr | 4 +- tests/EduCoroutineAllocFailureTest.expect | 4 +- tests/EduCoroutineBinaryExprTest.expect | 4 +- tests/EduCoroutineCaptureConstTest.expect | 4 +- tests/EduCoroutineCaptureThisTest.expect | 4 +- tests/EduCoroutineCoAwaitOperatorTest.expect | 4 +- ...EduCoroutineCoreturnWithCoawaitTest.expect | 16 ++--- tests/EduCoroutineCustomYieldTypeTest.expect | 4 +- tests/EduCoroutineExprTest.expect | 32 +++++----- tests/EduCoroutineFunctionTemplateTest.expect | 8 +-- tests/EduCoroutineSimpleTest.expect | 4 +- tests/EduCoroutineStaticVarTest.expect | 4 +- tests/EduCoroutineSuspendNeverBoolTest.expect | 4 +- tests/EduCoroutineSuspendNeverTest.expect | 4 +- .../EduCoroutineTemplateGeneratorTest.expect | 4 +- tests/EduCoroutineVoidTest.expect | 4 +- tests/EduCoroutineWithDtorTest.expect | 4 +- ...duCoroutineWithExceptionHandlerTest.expect | 4 +- tests/EduCoroutineWithLambdaTest.expect | 4 +- tests/EduLifeTimeTest6.expect | 2 +- tests/FunctionalCast2Test.expect | 4 +- tests/Issue102.expect | 28 ++++----- tests/Issue15.expect | 2 +- tests/Issue347.expect | 2 +- tests/Issue347_2.expect | 2 +- tests/Issue386.expect | 2 +- tests/Issue41.cerr | 26 +++++--- tests/Issue41.expect | 3 +- tests/Issue518.expect | 8 +-- tests/Issue526.expect | 4 +- tests/Issue536.expect | 4 +- tests/Issue536_2.expect | 4 +- tests/Issue628.expect | 4 +- tests/Issue64.expect | 2 +- tests/Issue679.expect | 4 +- tests/Issue723.expect | 2 +- tests/Issue726.expect | 4 +- tests/Issue727.expect | 4 +- tests/Issue727_2.expect | 4 +- tests/Issue727_3.expect | 4 +- tests/Issue728.expect | 4 +- tests/LambdaInVariadicTemplateTest.expect | 10 +-- tests/RangeForStmtHandler2Test.expect | 4 +- tests/RangeForStmtHandler2_11Test.expect | 4 +- tests/RangeForStmtHandler7Test.expect | 4 +- tests/RangeForStmtHandlerTest.expect | 4 +- tests/SimpleCICompileTest.expect | 2 +- tests/StringViewNamespaceTest.expect | 2 +- tests/TemplateArgumentsTest.expect | 2 +- tests/TemplatesWithAutoAndLambdaTest.expect | 2 +- tests/TupeInRangeBasedForTest.expect | 2 +- tests/TypeIdInTemplateTest.expect | 4 +- tests/UsingDeclTest.expect | 2 +- tests/VectorClassOperatorTest.expect | 4 +- tests/p0614Test.expect | 2 +- tests/p0780_2Test.cerr | 4 +- version.h.in | 2 +- 62 files changed, 197 insertions(+), 181 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aeae4bd1..6867fffb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ on: env: CMAKE_VERSION: 3.29.0 NINJA_VERSION: 1.11.1 - LLVM_VERSION: 21.1.0 + LLVM_VERSION: 23.1.0 NINJA_STATUS: "[%f/%t %o/sec] " jobs: @@ -32,7 +32,7 @@ jobs: name: "Linux Clang - Format check", os: ubuntu-22.04, build_type: Release, - cformat_name: 'clang-format-21' + cformat_name: 'clang-format-23' } steps: @@ -45,7 +45,7 @@ jobs: run: | wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh - sudo ./llvm.sh 21 + sudo ./llvm.sh 23 sudo apt-get install ${{ matrix.config.cformat_name }} - name: clang-format check @@ -68,11 +68,11 @@ jobs: config: # AppleClang - { - name: "Clang 21 / LLVM 21 @ macOS Release", + name: "Clang 23 / LLVM 23 @ macOS Release", os: macos-14, build_type: Release, cxx: "clang++", - llvm_version: "21.1.0", + llvm_version: "23.1.0", llvm_config: "llvm-config", coverage: "No", static: "No", @@ -87,11 +87,11 @@ jobs: # AppleClang - { - name: "Clang 21 / LLVM 21 @ macOS Debug", + name: "Clang 23 / LLVM 23 @ macOS Debug", os: macos-14, build_type: Release, cxx: "clang++", - llvm_version: "21.1.0", + llvm_version: "23.1.0", llvm_config: "llvm-config", coverage: "No", static: "No", @@ -106,11 +106,11 @@ jobs: # AppleClang - { - name: "Clang 21 / LLVM 21 @ macOS Coverage & Debug", + name: "Clang 23 / LLVM 23 @ macOS Coverage & Debug", os: macos-14, build_type: Release, cxx: "clang++", - llvm_version: "21.1.0", + llvm_version: "23.1.0", llvm_config: "llvm-config", coverage: "Yes", static: "No", @@ -124,11 +124,11 @@ jobs: # # MSVC 2019 # - { - # name: "MSVC 2022 / LLVM 21 @ Windows Release", + # name: "MSVC 2022 / LLVM 23 @ Windows Release", # os: windows-2022, # build_type: Release, # cxx: "cl", - # llvm_version: "21.1.0", + # llvm_version: "23.1.0", # llvm_config: "current/bin/llvm-config.exe", # static: "Yes", # debug: "No", @@ -143,11 +143,11 @@ jobs: # # MSVC 2019 # - { - # name: "MSVC 2022 / LLVM 21 @ Windows Debug", + # name: "MSVC 2022 / LLVM 23 @ Windows Debug", # os: windows-2022, # build_type: Release, # cxx: "cl", - # llvm_version: "21.1.0", + # llvm_version: "23.1.0", # llvm_config: "current/bin/llvm-config.exe", # static: "Yes", # debug: "Yes", @@ -161,11 +161,11 @@ jobs: # # MSVC 2019 # - { - # name: "MSVC 2022 / LLVM 21 @ Windows Code Coverage & Debug", + # name: "MSVC 2022 / LLVM 23 @ Windows Code Coverage & Debug", # os: windows-2022, # build_type: Release, # cxx: "clang-cl.exe", - # llvm_version: "21.1.0", + # llvm_version: "23.1.0", # llvm_config: "current/bin/llvm-config.exe", # coverage: "Yes", # static: "Yes", @@ -462,13 +462,13 @@ jobs: - ubuntu-22.04-arm config: - # GCC 16 / LLVM 21 + # GCC 16 / LLVM 23 - { - name: "GCC 16 / LLVM 21 @ Ubuntu Release", + name: "GCC 16 / LLVM 23 @ Ubuntu Release", build_type: Release, cxx: "g++-16", - llvm_version: "21.1.0", - llvm_config: "/usr/bin/llvm-config-21", + llvm_version: "23.1.0", + llvm_config: "/usr/bin/llvm-config-23", coverage: "No", static: "Yes", debug: "No", @@ -481,13 +481,13 @@ jobs: docs: "Yes", } - # GCC 16 / LLVM 21 + # GCC 16 / LLVM 23 - { - name: "GCC 16 / LLVM 21 @ Ubuntu Code Coverage & Debug", + name: "GCC 16 / LLVM 23 @ Ubuntu Code Coverage & Debug", build_type: Release, cxx: "g++-16", - llvm_version: "21.1.0", - llvm_config: "/usr/bin/llvm-config-21", + llvm_version: "23.1.0", + llvm_config: "/usr/bin/llvm-config-23", coverage: "Yes", static: "No", debug: "Yes", @@ -498,13 +498,13 @@ jobs: archive_name: "insights-ubuntu", } - # GCC 16 / LLVM 21 + # GCC 16 / LLVM 23 - { - name: "GCC 16 / LLVM 21 @ Ubuntu Code Coverage (libc++)", + name: "GCC 16 / LLVM 23 @ Ubuntu Code Coverage (libc++)", build_type: Release, cxx: "g++-16", - llvm_version: "21.1.0", - llvm_config: "/usr/bin/llvm-config-21", + llvm_version: "23.1.0", + llvm_config: "/usr/bin/llvm-config-23", coverage: "Yes", static: "No", debug: "Yes", @@ -630,13 +630,13 @@ jobs: - amd64 config: - # GCC 16 / LLVM 21 + # GCC 16 / LLVM 23 - { - name: "GCC 16 / LLVM 21 @ Ubuntu Release", + name: "GCC 16 / LLVM 23 @ Ubuntu Release", build_type: Release, cxx: "g++-16", - llvm_version: "21.1.0", - llvm_config: "/usr/bin/llvm-config-21", + llvm_version: "23.1.0", + llvm_config: "/usr/bin/llvm-config-23", coverage: "No", static: "Yes", debug: "No", diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e1b312b..fe15323c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ option(INSIGHTS_STATIC "Use static linking" Off) set(INSIGHTS_LLVM_CONFIG "llvm-config" CACHE STRING "LLVM config executable to use") -set(INSIGHTS_MIN_LLVM_MAJOR_VERSION 21) +set(INSIGHTS_MIN_LLVM_MAJOR_VERSION 23) set(INSIGHTS_MIN_LLVM_VERSION ${INSIGHTS_MIN_LLVM_MAJOR_VERSION}.0) if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) @@ -250,6 +250,10 @@ if (BUILD_INSIGHTS_OUTSIDE_LLVM) llvm_config(LLVM_INCLUDE_DIR "--includedir") llvm_config(LLVM_SYSTEM_LIBS2 "--system-libs") + # C++ Insights doesn't use the part which required libz3 support + string(REPLACE "-lm /usr/lib/x86_64-linux-gnu/libz3.so" "" LLVM_SYSTEM_LIBS2 "${LLVM_SYSTEM_LIBS2}") + string(REPLACE "-lm /usr/lib/aarch64-linux-gnu/libz3.so" "" LLVM_SYSTEM_LIBS2 "${LLVM_SYSTEM_LIBS2}") + if(WIN32) string(REPLACE ".lib " ".lib;" LLVM_SYSTEM_LIBS "${LLVM_SYSTEM_LIBS2}") # For Win10 (?) some Win API things moved to Mincore.lib. @@ -903,6 +907,7 @@ message(STATUS "CMAKE_GENERATOR : ${CMAKE_GENERATOR}") message(STATUS "CMAKE_EXE_LINKER_FLAGS: ${CMAKE_EXE_LINKER_FLAGS}") message(STATUS "CMAKE_LINKER : ${CMAKE_LINKER}") message(STATUS "CMAKE_OSX_ARCHITECTURES : ${CMAKE_OSX_ARCHITECTURES}") +message(STATUS "LLVM_SYSTEM_LIBS : ${LLVM_SYSTEM_LIBS}") message(STATUS "Compiler ID : ${CMAKE_CXX_COMPILER_ID}") message(STATUS "Compiler version : ${CMAKE_CXX_COMPILER_VERSION}") message(STATUS "Compiler path : ${CMAKE_CXX_COMPILER}") diff --git a/scripts/prepare-release.py b/scripts/prepare-release.py index 3499d692..74695b9a 100755 --- a/scripts/prepare-release.py +++ b/scripts/prepare-release.py @@ -14,8 +14,8 @@ def main(): versionH = open('version.h.in', 'r').read() - oldClangStable = '20' - newClangStable = '21' + oldClangStable = '21' + newClangStable = '23' newInsightsVersion = f'{newClangStable}.1' oldInsightsVersion = re.search(r'INSIGHTS_VERSION\s+"(.*?)"', versionH, re.DOTALL | re.MULTILINE).group(1) diff --git a/tests/ClassInlineInitTest.expect b/tests/ClassInlineInitTest.expect index fbebcc8d..7261db03 100644 --- a/tests/ClassInlineInitTest.expect +++ b/tests/ClassInlineInitTest.expect @@ -2,7 +2,7 @@ struct Test { - std::basic_string, std::allocator > s = std::basic_string, std::allocator >{"333"}; + std::basic_string, std::allocator > s = std::basic_string, std::allocator >{"333", std::allocator()}; int x{2}; }; diff --git a/tests/ClassOperatorHandler5Test.expect b/tests/ClassOperatorHandler5Test.expect index daf9fbea..136d3ca1 100644 --- a/tests/ClassOperatorHandler5Test.expect +++ b/tests/ClassOperatorHandler5Test.expect @@ -3,7 +3,7 @@ std::basic_string, std::allocator > trim(const std::basic_string, std::allocator > & input) { if(input.length() == 0) { - return std::basic_string, std::allocator >(""); + return std::basic_string, std::allocator >("", std::allocator()); } std::basic_string, std::allocator > final = std::basic_string, std::allocator >(input); @@ -13,7 +13,7 @@ std::basic_string, std::allocator > trim(cons } if(i >= static_cast(input.length())) { - return std::basic_string, std::allocator >(""); + return std::basic_string, std::allocator >("", std::allocator()); } if(i > 0) { @@ -30,7 +30,7 @@ std::basic_string, std::allocator > trim(cons int main() { - std::basic_string, std::allocator > x = std::basic_string, std::allocator >{" ashj a a a aaa"}; + std::basic_string, std::allocator > x = std::basic_string, std::allocator >{" ashj a a a aaa", std::allocator()}; std::basic_string, std::allocator > b = trim(x); return 0; } diff --git a/tests/EduCfrontTestLifeTime2.cerr b/tests/EduCfrontTestLifeTime2.cerr index 681a596f..9aedc18e 100644 --- a/tests/EduCfrontTestLifeTime2.cerr +++ b/tests/EduCfrontTestLifeTime2.cerr @@ -1,7 +1,7 @@ -.tmp.cpp:84:14: error: taking the address of a temporary object of type 'Data' [-Waddress-of-temporary] +.tmp.cpp:84:14: error: taking the address of a temporary object of type 'Data' (aka 'struct Data') [-Waddress-of-temporary] 84 | Data * d = &get(Constructor_Test((Test *)&__temporary43_22, 4)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.tmp.cpp:91:14: error: taking the address of a temporary object of type 'Data' [-Waddress-of-temporary] +.tmp.cpp:91:14: error: taking the address of a temporary object of type 'Data' (aka 'struct Data') [-Waddress-of-temporary] 91 | Data * d = &get(Constructor_Test((Test *)&__temporary48_22, 4)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .tmp.cpp:103:20: error: use of undeclared identifier 'tt' diff --git a/tests/EduCoroutineAllocFailureTest.expect b/tests/EduCoroutineAllocFailureTest.expect index 61239f25..93568fc9 100644 --- a/tests/EduCoroutineAllocFailureTest.expect +++ b/tests/EduCoroutineAllocFailureTest.expect @@ -152,7 +152,7 @@ struct __fun_intFrame { void (*resume_fn)(__fun_intFrame *); void (*destroy_fn)(__fun_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_40_14; @@ -176,7 +176,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_intResume(__fun_intFrame * __f); diff --git a/tests/EduCoroutineBinaryExprTest.expect b/tests/EduCoroutineBinaryExprTest.expect index cc9a7f5f..723df76b 100644 --- a/tests/EduCoroutineBinaryExprTest.expect +++ b/tests/EduCoroutineBinaryExprTest.expect @@ -76,7 +76,7 @@ struct __seqFrame { void (*resume_fn)(__seqFrame *); void (*destroy_fn)(__seqFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int start; @@ -108,7 +108,7 @@ generator seq(int start) __f->start = std::forward(start); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __seqResume(__seqFrame * __f); diff --git a/tests/EduCoroutineCaptureConstTest.expect b/tests/EduCoroutineCaptureConstTest.expect index 6b1c3bf4..08bb1e70 100644 --- a/tests/EduCoroutineCaptureConstTest.expect +++ b/tests/EduCoroutineCaptureConstTest.expect @@ -76,7 +76,7 @@ struct __seqFrame { void (*resume_fn)(__seqFrame *); void (*destroy_fn)(__seqFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; const int & start; @@ -103,7 +103,7 @@ generator seq(const int & start) __f->start = std::forward(start); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __seqResume(__seqFrame * __f); diff --git a/tests/EduCoroutineCaptureThisTest.expect b/tests/EduCoroutineCaptureThisTest.expect index e8a93b88..0553cafa 100644 --- a/tests/EduCoroutineCaptureThisTest.expect +++ b/tests/EduCoroutineCaptureThisTest.expect @@ -71,7 +71,7 @@ struct ClassWithCoro { void (*resume_fn)(__coroFrame *); void (*destroy_fn)(__coroFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int x; @@ -91,7 +91,7 @@ inline my_resumable coro(int x) __f->__this = this; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{*__f->__this, __f->x}; + new (&__f->__promise)std::coroutine_traits::promise_type{*__f->__this, __f->x}; /* Forward declare the resume and destroy function. */ void __coroResume(__coroFrame * __f); diff --git a/tests/EduCoroutineCoAwaitOperatorTest.expect b/tests/EduCoroutineCoAwaitOperatorTest.expect index a47afb46..8fc138b8 100644 --- a/tests/EduCoroutineCoAwaitOperatorTest.expect +++ b/tests/EduCoroutineCoAwaitOperatorTest.expect @@ -160,7 +160,7 @@ struct __gFrame { void (*resume_fn)(__gFrame *); void (*destroy_fn)(__gFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_51_16; @@ -179,7 +179,7 @@ my_future g() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __gResume(__gFrame * __f); diff --git a/tests/EduCoroutineCoreturnWithCoawaitTest.expect b/tests/EduCoroutineCoreturnWithCoawaitTest.expect index 667bcb74..20a333f3 100644 --- a/tests/EduCoroutineCoreturnWithCoawaitTest.expect +++ b/tests/EduCoroutineCoreturnWithCoawaitTest.expect @@ -97,7 +97,7 @@ struct __simpleReturnFrame { void (*resume_fn)(__simpleReturnFrame *); void (*destroy_fn)(__simpleReturnFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int v; @@ -120,7 +120,7 @@ generator simpleReturn(int v) __f->v = std::forward(v); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __simpleReturnResume(__simpleReturnFrame * __f); @@ -202,7 +202,7 @@ struct __additionAwaitReturnFrame { void (*resume_fn)(__additionAwaitReturnFrame *); void (*destroy_fn)(__additionAwaitReturnFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int v; @@ -229,7 +229,7 @@ generator additionAwaitReturn(int v) __f->v = std::forward(v); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __additionAwaitReturnResume(__additionAwaitReturnFrame * __f); @@ -347,7 +347,7 @@ struct __additionAwaitReturn2Frame { void (*resume_fn)(__additionAwaitReturn2Frame *); void (*destroy_fn)(__additionAwaitReturn2Frame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int v; @@ -376,7 +376,7 @@ generator additionAwaitReturn2(int v) __f->v = std::forward(v); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __additionAwaitReturn2Resume(__additionAwaitReturn2Frame * __f); @@ -512,7 +512,7 @@ struct __additionAwaitReturnWithIntFrame { void (*resume_fn)(__additionAwaitReturnWithIntFrame *); void (*destroy_fn)(__additionAwaitReturnWithIntFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int v; @@ -539,7 +539,7 @@ generator additionAwaitReturnWithInt(int v) __f->v = std::forward(v); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __additionAwaitReturnWithIntResume(__additionAwaitReturnWithIntFrame * __f); diff --git a/tests/EduCoroutineCustomYieldTypeTest.expect b/tests/EduCoroutineCustomYieldTypeTest.expect index 184a9eb7..1b3edae5 100644 --- a/tests/EduCoroutineCustomYieldTypeTest.expect +++ b/tests/EduCoroutineCustomYieldTypeTest.expect @@ -154,7 +154,7 @@ struct __seqFrame { void (*resume_fn)(__seqFrame *); void (*destroy_fn)(__seqFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int start; @@ -179,7 +179,7 @@ generator seq(int start) __f->start = std::forward(start); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __seqResume(__seqFrame * __f); diff --git a/tests/EduCoroutineExprTest.expect b/tests/EduCoroutineExprTest.expect index f2b92f49..636c53b2 100644 --- a/tests/EduCoroutineExprTest.expect +++ b/tests/EduCoroutineExprTest.expect @@ -237,7 +237,7 @@ struct __get_randomFrame { void (*resume_fn)(__get_randomFrame *); void (*destroy_fn)(__get_randomFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_77_11; @@ -253,7 +253,7 @@ task get_random() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __get_randomResume(__get_randomFrame * __f); @@ -340,7 +340,7 @@ struct __testVarDeclAndConditionalFrame { void (*resume_fn)(__testVarDeclAndConditionalFrame *); void (*destroy_fn)(__testVarDeclAndConditionalFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -372,7 +372,7 @@ task testVarDeclAndConditional() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testVarDeclAndConditionalResume(__testVarDeclAndConditionalFrame * __f); @@ -544,7 +544,7 @@ struct __testIfStmtFrame { void (*resume_fn)(__testIfStmtFrame *); void (*destroy_fn)(__testIfStmtFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -571,7 +571,7 @@ task testIfStmt() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testIfStmtResume(__testIfStmtFrame * __f); @@ -719,7 +719,7 @@ struct __testCallExprFrame { void (*resume_fn)(__testCallExprFrame *); void (*destroy_fn)(__testCallExprFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -738,7 +738,7 @@ task testCallExpr() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testCallExprResume(__testCallExprFrame * __f); @@ -838,7 +838,7 @@ struct __testSwitchFrame { void (*resume_fn)(__testSwitchFrame *); void (*destroy_fn)(__testSwitchFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -857,7 +857,7 @@ task testSwitch() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testSwitchResume(__testSwitchFrame * __f); @@ -959,7 +959,7 @@ struct __testWhileFrame { void (*resume_fn)(__testWhileFrame *); void (*destroy_fn)(__testWhileFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -979,7 +979,7 @@ task testWhile() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testWhileResume(__testWhileFrame * __f); @@ -1082,7 +1082,7 @@ struct __testDoWhileFrame { void (*resume_fn)(__testDoWhileFrame *); void (*destroy_fn)(__testDoWhileFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -1102,7 +1102,7 @@ task testDoWhile() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testDoWhileResume(__testDoWhileFrame * __f); @@ -1205,7 +1205,7 @@ struct __testForLoopFrame { void (*resume_fn)(__testForLoopFrame *); void (*destroy_fn)(__testForLoopFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -1230,7 +1230,7 @@ task testForLoop() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testForLoopResume(__testForLoopFrame * __f); diff --git a/tests/EduCoroutineFunctionTemplateTest.expect b/tests/EduCoroutineFunctionTemplateTest.expect index 365a0ceb..2e212c3b 100644 --- a/tests/EduCoroutineFunctionTemplateTest.expect +++ b/tests/EduCoroutineFunctionTemplateTest.expect @@ -151,7 +151,7 @@ struct __fun_int_char_unsignedint_3_1400000000000001Frame { void (*resume_fn)(__fun_int_char_unsignedint_3_1400000000000001Frame *); void (*destroy_fn)(__fun_int_char_unsignedint_3_1400000000000001Frame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_43_14; @@ -170,7 +170,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_int_char_unsignedint_3_1400000000000001Resume(__fun_int_char_unsignedint_3_1400000000000001Frame * __f); @@ -254,7 +254,7 @@ struct __fun_int_char_unsignedint_ClsAsNTTPToCoro_4_n3_000000e_00_Frame { void (*resume_fn)(__fun_int_char_unsignedint_ClsAsNTTPToCoro_4_n3_000000e_00_Frame *); void (*destroy_fn)(__fun_int_char_unsignedint_ClsAsNTTPToCoro_4_n3_000000e_00_Frame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_43_14; @@ -274,7 +274,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_int_char_unsignedint_ClsAsNTTPToCoro_4_n3_000000e_00_Resume(__fun_int_char_unsignedint_ClsAsNTTPToCoro_4_n3_000000e_00_Frame * __f); diff --git a/tests/EduCoroutineSimpleTest.expect b/tests/EduCoroutineSimpleTest.expect index 7a4eb61e..30e613b3 100644 --- a/tests/EduCoroutineSimpleTest.expect +++ b/tests/EduCoroutineSimpleTest.expect @@ -77,7 +77,7 @@ struct __funFrame { void (*resume_fn)(__funFrame *); void (*destroy_fn)(__funFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_never __suspend_34_11; @@ -93,7 +93,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funResume(__funFrame * __f); diff --git a/tests/EduCoroutineStaticVarTest.expect b/tests/EduCoroutineStaticVarTest.expect index 4b452bc8..3cb4231d 100644 --- a/tests/EduCoroutineStaticVarTest.expect +++ b/tests/EduCoroutineStaticVarTest.expect @@ -96,7 +96,7 @@ struct __taskAFrame { void (*resume_fn)(__taskAFrame *); void (*destroy_fn)(__taskAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; Scheduler & sched; @@ -115,7 +115,7 @@ Task taskA(Scheduler & sched) __f->sched = std::forward(sched); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __taskAResume(__taskAFrame * __f); diff --git a/tests/EduCoroutineSuspendNeverBoolTest.expect b/tests/EduCoroutineSuspendNeverBoolTest.expect index fab83696..df9b64b2 100644 --- a/tests/EduCoroutineSuspendNeverBoolTest.expect +++ b/tests/EduCoroutineSuspendNeverBoolTest.expect @@ -162,7 +162,7 @@ struct __fun_intFrame { void (*resume_fn)(__fun_intFrame *); void (*destroy_fn)(__fun_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; suspend_never_bool __suspend_41_14; @@ -182,7 +182,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_intResume(__fun_intFrame * __f); diff --git a/tests/EduCoroutineSuspendNeverTest.expect b/tests/EduCoroutineSuspendNeverTest.expect index 4947e0de..419011e2 100644 --- a/tests/EduCoroutineSuspendNeverTest.expect +++ b/tests/EduCoroutineSuspendNeverTest.expect @@ -145,7 +145,7 @@ struct __fun_intFrame { void (*resume_fn)(__fun_intFrame *); void (*destroy_fn)(__fun_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_never __suspend_34_14; @@ -165,7 +165,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_intResume(__fun_intFrame * __f); diff --git a/tests/EduCoroutineTemplateGeneratorTest.expect b/tests/EduCoroutineTemplateGeneratorTest.expect index 0efbd7e8..685f5908 100644 --- a/tests/EduCoroutineTemplateGeneratorTest.expect +++ b/tests/EduCoroutineTemplateGeneratorTest.expect @@ -142,7 +142,7 @@ struct __fun_intFrame { void (*resume_fn)(__fun_intFrame *); void (*destroy_fn)(__fun_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_34_14; @@ -161,7 +161,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_intResume(__fun_intFrame * __f); diff --git a/tests/EduCoroutineVoidTest.expect b/tests/EduCoroutineVoidTest.expect index 0e26f2e8..7fe219dc 100644 --- a/tests/EduCoroutineVoidTest.expect +++ b/tests/EduCoroutineVoidTest.expect @@ -147,7 +147,7 @@ struct __seq_intFrame { void (*resume_fn)(__seq_intFrame *); void (*destroy_fn)(__seq_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int i; @@ -168,7 +168,7 @@ generator seq() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __seq_intResume(__seq_intFrame * __f); diff --git a/tests/EduCoroutineWithDtorTest.expect b/tests/EduCoroutineWithDtorTest.expect index f0a0e9a3..26e61a90 100644 --- a/tests/EduCoroutineWithDtorTest.expect +++ b/tests/EduCoroutineWithDtorTest.expect @@ -160,7 +160,7 @@ struct __fun_TestFrame { void (*resume_fn)(__fun_TestFrame *); void (*destroy_fn)(__fun_TestFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_43_14; @@ -179,7 +179,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_TestResume(__fun_TestFrame * __f); diff --git a/tests/EduCoroutineWithExceptionHandlerTest.expect b/tests/EduCoroutineWithExceptionHandlerTest.expect index 7d8291ee..3d39a906 100644 --- a/tests/EduCoroutineWithExceptionHandlerTest.expect +++ b/tests/EduCoroutineWithExceptionHandlerTest.expect @@ -158,7 +158,7 @@ struct __fun_intFrame { void (*resume_fn)(__fun_intFrame *); void (*destroy_fn)(__fun_intFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_41_14; @@ -177,7 +177,7 @@ generator fun() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __fun_intResume(__fun_intFrame * __f); diff --git a/tests/EduCoroutineWithLambdaTest.expect b/tests/EduCoroutineWithLambdaTest.expect index f4a80aec..2e4d86a9 100644 --- a/tests/EduCoroutineWithLambdaTest.expect +++ b/tests/EduCoroutineWithLambdaTest.expect @@ -103,7 +103,7 @@ void SyncAwait(std::suspend_always && a) { void (*resume_fn)(__operator_45_43Frame *); void (*destroy_fn)(__operator_45_43Frame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_45_24; @@ -120,7 +120,7 @@ inline generator operator()() const __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __operator_45_43Resume(__operator_45_43Frame * __f); diff --git a/tests/EduLifeTimeTest6.expect b/tests/EduLifeTimeTest6.expect index 65b20bd8..0ece6c49 100644 --- a/tests/EduLifeTimeTest6.expect +++ b/tests/EduLifeTimeTest6.expect @@ -31,7 +31,7 @@ int main() /* __temporary19_26.~Keeper() */ std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { int & item = __begin1.operator*(); /* item // lifetime ends here */ } diff --git a/tests/FunctionalCast2Test.expect b/tests/FunctionalCast2Test.expect index b879d0d9..104ce589 100644 --- a/tests/FunctionalCast2Test.expect +++ b/tests/FunctionalCast2Test.expect @@ -39,7 +39,7 @@ inline constexpr bool Compare(const T (&ar)[N], const TTo & to) template<> inline constexpr bool Compare(const unsigned char (&ar)[6], const int & to) { - return details::array_single_compare::Compare(ar, to, std::integer_sequence{}); + return details::array_single_compare::Compare(ar, to, std::integer_sequence{{}}); } #endif @@ -85,7 +85,7 @@ inline constexpr bool Compare(const T (&ar)[N], const T (&to)[N]) template<> inline constexpr bool Compare(const unsigned char (&ar)[6], const unsigned char (&to)[6]) { - return details::array_compare::Compare(ar, to, std::integer_sequence{}); + return details::array_compare::Compare(ar, to, std::integer_sequence{{}}); } #endif diff --git a/tests/Issue102.expect b/tests/Issue102.expect index 07b8d07b..0b753fea 100644 --- a/tests/Issue102.expect +++ b/tests/Issue102.expect @@ -152,7 +152,7 @@ template<> int match(int & value, const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, int>{{}})), __cases2, __cases3); @@ -165,7 +165,7 @@ template<> int match(int & value, const __lambda_74_4 & _case, const __lambda_75_4 & __cases2) { using namespace std; - using args = FunctionArgs<__lambda_74_4>::tuple; + using args = std::tuple; using arg = tuple_element_t<0, std::tuple >; using match = is_same, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same{{}})), __cases2); @@ -178,7 +178,7 @@ template<> int match(const char (&value)[3], const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, const char *>{{}})), __cases2, __cases3); @@ -191,7 +191,7 @@ template<> int match(const char (&value)[3], const __lambda_74_4 & _case, const __lambda_75_4 & __cases2) { using namespace std; - using args = FunctionArgs<__lambda_74_4>::tuple; + using args = std::tuple; using arg = tuple_element_t<0, std::tuple >; using match = is_same, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same{{}})), __cases2); @@ -210,7 +210,7 @@ template<> std::basic_string, std::allocator > match, std::allocator > &, __lambda_73_4, __lambda_74_4, __lambda_75_4>(std::basic_string, std::allocator > & value, const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, std::basic_string, std::allocator > >; return details::match_call(_case, std::forward, std::allocator > &>(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, std::basic_string, std::allocator > >{{}})), __cases2, __cases3); @@ -305,7 +305,7 @@ template<> int match(int & value, const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, int>{{}})), __cases2, __cases3); @@ -318,7 +318,7 @@ template<> int match(int & value, const __lambda_74_4 & _case, const __lambda_75_4 & __cases2) { using namespace std; - using args = FunctionArgs<__lambda_74_4>::tuple; + using args = std::tuple; using arg = tuple_element_t<0, std::tuple >; using match = is_same, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same{{}})), __cases2); @@ -331,7 +331,7 @@ template<> int match(const char (&value)[3], const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, const char *>{{}})), __cases2, __cases3); @@ -344,7 +344,7 @@ template<> int match(const char (&value)[3], const __lambda_74_4 & _case, const __lambda_75_4 & __cases2) { using namespace std; - using args = FunctionArgs<__lambda_74_4>::tuple; + using args = std::tuple; using arg = tuple_element_t<0, std::tuple >; using match = is_same, decay_t >; return details::match_call(_case, std::forward(value), std::integral_constant(static_cast &&>(std::is_same{{}})), __cases2); @@ -363,7 +363,7 @@ template<> std::basic_string, std::allocator > match, std::allocator > &, __lambda_73_4, __lambda_74_4, __lambda_75_4>(std::basic_string, std::allocator > & value, const __lambda_73_4 & _case, const __lambda_74_4 & __cases2, const __lambda_75_4 & __cases3) { using namespace std; - using args = FunctionArgs<__lambda_73_4>::tuple, std::allocator > >; + using args = std::tuple, std::allocator > >; using arg = tuple_element_t<0, std::tuple, std::allocator > > >; using match = is_same, std::allocator >, std::basic_string, std::allocator > >; return details::match_call(_case, std::forward, std::allocator > &>(value), std::integral_constant(static_cast &&>(std::is_same, std::allocator >, std::basic_string, std::allocator > >{{}})), __cases2, __cases3); @@ -472,7 +472,7 @@ int test(int && value) return std::operator+(value, " Hi!"); } - using retType_73_4 = basic_string, std::allocator > (*)(std::string); + using retType_73_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_73_4 () const noexcept { return __invoke; @@ -547,7 +547,7 @@ int test(const char (&value)[3]) return std::operator+(value, " Hi!"); } - using retType_73_4 = basic_string, std::allocator > (*)(std::string); + using retType_73_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_73_4 () const noexcept { return __invoke; @@ -632,7 +632,7 @@ std::basic_string, std::allocator > test, std::allocator > (*)(std::string); + using retType_73_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_73_4 () const noexcept { return __invoke; @@ -697,6 +697,6 @@ int main() { std::cout.operator<<(test(200)).operator<<(std::endl); std::cout.operator<<(test("RR")).operator<<(std::endl); - std::operator<<(std::cout, test(std::basic_string, std::allocator >{"ARR"})).operator<<(std::endl); + std::operator<<(std::cout, test(std::basic_string, std::allocator >{"ARR", std::allocator()})).operator<<(std::endl); return 0; } diff --git a/tests/Issue15.expect b/tests/Issue15.expect index e47be290..769c77f6 100644 --- a/tests/Issue15.expect +++ b/tests/Issue15.expect @@ -10,7 +10,7 @@ std::chrono::duration > operator""_s(unsigned long l std::basic_string, std::allocator > operator""_str(const char * s, unsigned long len) { - return std::basic_string, std::allocator >(s, len); + return std::basic_string, std::allocator >(s, len, std::allocator()); } template diff --git a/tests/Issue347.expect b/tests/Issue347.expect index 5bbf7fd3..bbb62e9b 100644 --- a/tests/Issue347.expect +++ b/tests/Issue347.expect @@ -2,7 +2,7 @@ int main() { - std::basic_string, std::allocator > str = std::basic_string, std::allocator >{"Hello World"}; + std::basic_string, std::allocator > str = std::basic_string, std::allocator >{"Hello World", std::allocator()}; class __lambda_5_12 { diff --git a/tests/Issue347_2.expect b/tests/Issue347_2.expect index 408754fc..4e576587 100644 --- a/tests/Issue347_2.expect +++ b/tests/Issue347_2.expect @@ -2,7 +2,7 @@ int main() { - const std::basic_string, std::allocator > str = std::basic_string, std::allocator >{"Hello World"}; + const std::basic_string, std::allocator > str = std::basic_string, std::allocator >{"Hello World", std::allocator()}; class __lambda_5_12 { diff --git a/tests/Issue386.expect b/tests/Issue386.expect index 501b9b97..20b9c22f 100644 --- a/tests/Issue386.expect +++ b/tests/Issue386.expect @@ -22,7 +22,7 @@ namespace tnt ((__this->data[I] = std::exchange(rhs.data[I], U(0))) , ...); } // private: - vector * __this; + tnt::vector * __this; auto rhs; }; diff --git a/tests/Issue41.cerr b/tests/Issue41.cerr index 4eece3dd..8f3f72ec 100644 --- a/tests/Issue41.cerr +++ b/tests/Issue41.cerr @@ -4,13 +4,23 @@ .tmp.cpp:29:5: error: templates cannot be declared inside of a local class 29 | template | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from .tmp.cpp:1: -In file included from ... vector:352: -In file included from ... algorithm:1859: -... find_if.h:25:9: error: no matching function for call to object of type '__lambda_12_26' - 25 | if (__pred(*__first)) - | ^~~~~~ -.tmp.cpp:36:104: note: in instantiation of function template specialization 'std::find_if, __lambda_12_26>' requested here - 36 | std::__wrap_iter, std::allocator > *> it = std::find_if(std::begin(v), std::end(v), __lambda_12_26{}); +In file included from .tmp.cpp:2: +In file included from ... algorithm:1909: +In file included from ... find.h:13: +... find_if.h:30:9: error: no matching function for call to '__invoke' + 30 | if (std::__invoke(__pred, std::__invoke(__proj, *__first))) + | ^~~~~~~~~~~~~ +... find_if.h:38:15: note: in instantiation of function template specialization 'std::__find_if, std::__wrap_iter, __lambda_12_26 &, std::__identity>' requested here + 38 | return std::__find_if(__first, __last, __pred, __identity()); + | ^ +.tmp.cpp:37:104: note: in instantiation of function template specialization 'std::find_if, __lambda_12_26>' requested here + 37 | std::__wrap_iter, std::allocator > *> it = std::find_if(std::begin(v), std::end(v), __lambda_12_26{}); | ^ +... invoke.h:88:69: note: candidate template ignored: substitution failure [with _Args = <__lambda_12_26 &, std::string &>]: no type named 'type' in 'std::__invoke_result_impl' + 85 | using __invoke_result_t _LIBCPP_NODEBUG = typename __invoke_result<_Args...>::type; + | ~~~~~ + 86 | + 87 | template + 88 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __invoke_result_t<_Args...> __invoke(_Args&&... __args) + | ^ 3 errors generated. diff --git a/tests/Issue41.expect b/tests/Issue41.expect index 3cc67145..ec15c546 100644 --- a/tests/Issue41.expect +++ b/tests/Issue41.expect @@ -6,7 +6,7 @@ using namespace std; int main() { - std::vector, std::allocator >, std::allocator, std::allocator > > > v = std::vector, std::allocator >, std::allocator, std::allocator > > >{std::initializer_list, std::allocator > >{std::basic_string, std::allocator >("aaa"), std::basic_string, std::allocator >("bbb"), std::basic_string, std::allocator >("ccc")}}; + std::vector, std::allocator >, std::allocator, std::allocator > > > v = std::vector, std::allocator >, std::allocator, std::allocator > > >{std::initializer_list, std::allocator > >{std::basic_string, std::allocator >("aaa", std::allocator()), std::basic_string, std::allocator >("bbb", std::allocator()), std::basic_string, std::allocator >("ccc", std::allocator())}}; class __lambda_12_26 { @@ -31,6 +31,7 @@ int main() { return __lambda_12_26{}.operator()(str); } + public: }; std::__wrap_iter, std::allocator > *> it = std::find_if(std::begin(v), std::end(v), __lambda_12_26{}); diff --git a/tests/Issue518.expect b/tests/Issue518.expect index da0ce792..94a9247f 100644 --- a/tests/Issue518.expect +++ b/tests/Issue518.expect @@ -241,7 +241,7 @@ struct __get_randomFrame { void (*resume_fn)(__get_randomFrame *); void (*destroy_fn)(__get_randomFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_77_11; @@ -257,7 +257,7 @@ task get_random() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __get_randomResume(__get_randomFrame * __f); @@ -342,7 +342,7 @@ struct __testFrame { void (*resume_fn)(__testFrame *); void (*destroy_fn)(__testFrame *); - std::__coroutine_traits_sfinae >::promise_type __promise; + std::coroutine_traits >::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; task v; @@ -365,7 +365,7 @@ task test() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae >::promise_type{}; + new (&__f->__promise)std::coroutine_traits >::promise_type{}; /* Forward declare the resume and destroy function. */ void __testResume(__testFrame * __f); diff --git a/tests/Issue526.expect b/tests/Issue526.expect index c2c23c5b..489be9e3 100644 --- a/tests/Issue526.expect +++ b/tests/Issue526.expect @@ -25,7 +25,7 @@ struct executable { void (*resume_fn)(__executeFrame *); void (*destroy_fn)(__executeFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_never __suspend_9_30; @@ -42,7 +42,7 @@ static inline hello_world execute() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __executeResume(__executeFrame * __f); diff --git a/tests/Issue536.expect b/tests/Issue536.expect index a5d58c2d..33a789f0 100644 --- a/tests/Issue536.expect +++ b/tests/Issue536.expect @@ -79,7 +79,7 @@ struct __coroFrame { void (*resume_fn)(__coroFrame *); void (*destroy_fn)(__coroFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int a; @@ -101,7 +101,7 @@ my_resumable coro(int a, char b, double c) __f->c = std::forward(c); /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{__f->a, __f->b, __f->c}; + new (&__f->__promise)std::coroutine_traits::promise_type{__f->a, __f->b, __f->c}; /* Forward declare the resume and destroy function. */ void __coroResume(__coroFrame * __f); diff --git a/tests/Issue536_2.expect b/tests/Issue536_2.expect index 3a194050..1940579e 100644 --- a/tests/Issue536_2.expect +++ b/tests/Issue536_2.expect @@ -70,7 +70,7 @@ struct ClassWithCoro { void (*resume_fn)(__coroFrame *); void (*destroy_fn)(__coroFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int x; @@ -90,7 +90,7 @@ inline my_resumable coro(int x) const __f->__this = this; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{*__f->__this, __f->x}; + new (&__f->__promise)std::coroutine_traits::promise_type{*__f->__this, __f->x}; /* Forward declare the resume and destroy function. */ void __coroResume(__coroFrame * __f); diff --git a/tests/Issue628.expect b/tests/Issue628.expect index 0e1f887e..b17207b7 100644 --- a/tests/Issue628.expect +++ b/tests/Issue628.expect @@ -96,7 +96,7 @@ struct __fooFrame { void (*resume_fn)(__fooFrame *); void (*destroy_fn)(__fooFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; int i; @@ -114,7 +114,7 @@ Task foo() noexcept __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __fooResume(__fooFrame * __f); diff --git a/tests/Issue64.expect b/tests/Issue64.expect index ccacbf91..f72294c4 100644 --- a/tests/Issue64.expect +++ b/tests/Issue64.expect @@ -6,7 +6,7 @@ void func(const std::basic_string, std::allocator::size_type operator()() const + inline constexpr unsigned long operator()() const { return arg.size(); } diff --git a/tests/Issue679.expect b/tests/Issue679.expect index 5cd40e59..aa26ac9a 100644 --- a/tests/Issue679.expect +++ b/tests/Issue679.expect @@ -91,7 +91,7 @@ struct __GeneratorFrame { void (*resume_fn)(__GeneratorFrame *); void (*destroy_fn)(__GeneratorFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_65_8; @@ -110,7 +110,7 @@ Future Generator() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __GeneratorResume(__GeneratorFrame * __f); diff --git a/tests/Issue723.expect b/tests/Issue723.expect index 0234a127..eb80cf0d 100644 --- a/tests/Issue723.expect +++ b/tests/Issue723.expect @@ -12,7 +12,7 @@ int main() const std::pair, std::allocator > > & __operator6 = __begin1.operator*(); const int & k = std::get<0UL>(__operator6); const std::basic_string, std::allocator > & v = std::get<1UL>(__operator6); - const int a = 1; + std::tuple_element<0, const std::pair, std::allocator > > >::type a = 1; } } diff --git a/tests/Issue726.expect b/tests/Issue726.expect index c74b5532..36102ce3 100644 --- a/tests/Issue726.expect +++ b/tests/Issue726.expect @@ -52,7 +52,7 @@ struct __funcAFrame { void (*resume_fn)(__funcAFrame *); void (*destroy_fn)(__funcAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_34_3; @@ -68,7 +68,7 @@ R funcA() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funcAResume(__funcAFrame * __f); diff --git a/tests/Issue727.expect b/tests/Issue727.expect index 422640fe..6b8393e2 100644 --- a/tests/Issue727.expect +++ b/tests/Issue727.expect @@ -62,7 +62,7 @@ struct __funcAFrame { void (*resume_fn)(__funcAFrame *); void (*destroy_fn)(__funcAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_40_3; @@ -79,7 +79,7 @@ R funcA() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funcAResume(__funcAFrame * __f); diff --git a/tests/Issue727_2.expect b/tests/Issue727_2.expect index aeeb506b..4b21f778 100644 --- a/tests/Issue727_2.expect +++ b/tests/Issue727_2.expect @@ -72,7 +72,7 @@ struct __funcAFrame { void (*resume_fn)(__funcAFrame *); void (*destroy_fn)(__funcAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; astupid_noop __suspend_46_3; @@ -89,7 +89,7 @@ R funcA() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funcAResume(__funcAFrame * __f); diff --git a/tests/Issue727_3.expect b/tests/Issue727_3.expect index 1dcf7352..d0dda2f8 100644 --- a/tests/Issue727_3.expect +++ b/tests/Issue727_3.expect @@ -63,7 +63,7 @@ struct __funcAFrame { void (*resume_fn)(__funcAFrame *); void (*destroy_fn)(__funcAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_41_3; @@ -80,7 +80,7 @@ R funcA() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funcAResume(__funcAFrame * __f); diff --git a/tests/Issue728.expect b/tests/Issue728.expect index 4ae14fc1..abe4a40d 100644 --- a/tests/Issue728.expect +++ b/tests/Issue728.expect @@ -52,7 +52,7 @@ struct __funcAFrame { void (*resume_fn)(__funcAFrame *); void (*destroy_fn)(__funcAFrame *); - std::__coroutine_traits_sfinae::promise_type __promise; + std::coroutine_traits::promise_type __promise; int __suspend_index; bool __initial_await_suspend_called; std::suspend_always __suspend_35_3; @@ -69,7 +69,7 @@ R funcA() __f->__initial_await_suspend_called = false; /* Construct the promise. */ - new (&__f->__promise)std::__coroutine_traits_sfinae::promise_type{}; + new (&__f->__promise)std::coroutine_traits::promise_type{}; /* Forward declare the resume and destroy function. */ void __funcAResume(__funcAFrame * __f); diff --git a/tests/LambdaInVariadicTemplateTest.expect b/tests/LambdaInVariadicTemplateTest.expect index afc74a1a..1e369753 100644 --- a/tests/LambdaInVariadicTemplateTest.expect +++ b/tests/LambdaInVariadicTemplateTest.expect @@ -128,7 +128,7 @@ int test(int && value) return std::operator+(value, " Hi!"); } - using retType_13_4 = basic_string, std::allocator > (*)(std::string); + using retType_13_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_13_4 () const noexcept { return __invoke; @@ -203,7 +203,7 @@ int test(const char (&value)[3]) return std::operator+(value, " Hi!"); } - using retType_13_4 = basic_string, std::allocator > (*)(std::string); + using retType_13_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_13_4 () const noexcept { return __invoke; @@ -278,7 +278,7 @@ int test, std::allocator > return std::operator+(value, " Hi!"); } - using retType_13_4 = basic_string, std::allocator > (*)(std::string); + using retType_13_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_13_4 () const noexcept { return __invoke; @@ -353,7 +353,7 @@ int test(float && value) return std::operator+(value, " Hi!"); } - using retType_13_4 = basic_string, std::allocator > (*)(std::string); + using retType_13_4 = std::basic_string, std::allocator > ( *)(std::basic_string, std::allocator >); inline constexpr operator retType_13_4 () const noexcept { return __invoke; @@ -418,7 +418,7 @@ int main() { std::cout.operator<<(test(200)).operator<<(std::endl); std::cout.operator<<(test("RR")).operator<<(std::endl); - std::cout.operator<<(test(std::basic_string, std::allocator >{"ARR"})).operator<<(std::endl); + std::cout.operator<<(test(std::basic_string, std::allocator >{"ARR", std::allocator()})).operator<<(std::endl); std::cout.operator<<(test(2.0F)).operator<<(std::endl); return 0; } diff --git a/tests/RangeForStmtHandler2Test.expect b/tests/RangeForStmtHandler2Test.expect index 64076c6d..e48b7882 100644 --- a/tests/RangeForStmtHandler2Test.expect +++ b/tests/RangeForStmtHandler2Test.expect @@ -18,7 +18,7 @@ int main() std::vector > & __range1 = v; std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } @@ -27,7 +27,7 @@ int main() std::vector > & __range1 = v; std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } diff --git a/tests/RangeForStmtHandler2_11Test.expect b/tests/RangeForStmtHandler2_11Test.expect index 364d5000..48a1c8ce 100644 --- a/tests/RangeForStmtHandler2_11Test.expect +++ b/tests/RangeForStmtHandler2_11Test.expect @@ -14,14 +14,14 @@ int main() std::vector > v = std::vector >{std::initializer_list{1, 2, 3, 5}}; { std::vector > & __range1 = v; - for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } } { std::vector > & __range1 = v; - for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } diff --git a/tests/RangeForStmtHandler7Test.expect b/tests/RangeForStmtHandler7Test.expect index 364d5000..48a1c8ce 100644 --- a/tests/RangeForStmtHandler7Test.expect +++ b/tests/RangeForStmtHandler7Test.expect @@ -14,14 +14,14 @@ int main() std::vector > v = std::vector >{std::initializer_list{1, 2, 3, 5}}; { std::vector > & __range1 = v; - for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } } { std::vector > & __range1 = v; - for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(std::__wrap_iter __begin1 = std::__wrap_iter(__range1.begin()), __end1 = std::__wrap_iter(__range1.end()); operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); } diff --git a/tests/RangeForStmtHandlerTest.expect b/tests/RangeForStmtHandlerTest.expect index e083f31e..081a1252 100644 --- a/tests/RangeForStmtHandlerTest.expect +++ b/tests/RangeForStmtHandlerTest.expect @@ -97,7 +97,7 @@ int main() std::vector > & __range1 = v; std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { int & vv = __begin1.operator*(); printf("%d\n", vv); } @@ -107,7 +107,7 @@ int main() std::vector > & __range1 = v; std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { int & v2 = __begin1.operator*(); printf("%d\n", v2); } diff --git a/tests/SimpleCICompileTest.expect b/tests/SimpleCICompileTest.expect index eafad3d0..1584eb35 100644 --- a/tests/SimpleCICompileTest.expect +++ b/tests/SimpleCICompileTest.expect @@ -2,6 +2,6 @@ int main() { - std::basic_string, std::allocator > s = std::basic_string, std::allocator >{"Hello, CI!"}; + std::basic_string, std::allocator > s = std::basic_string, std::allocator >{"Hello, CI!", std::allocator()}; return 1; } diff --git a/tests/StringViewNamespaceTest.expect b/tests/StringViewNamespaceTest.expect index 07c2047d..d4e04eeb 100644 --- a/tests/StringViewNamespaceTest.expect +++ b/tests/StringViewNamespaceTest.expect @@ -4,7 +4,7 @@ int main() { - std::basic_string, std::allocator > str = std::basic_string, std::allocator >("Some string"); + std::basic_string, std::allocator > str = std::basic_string, std::allocator >("Some string", std::allocator()); std::basic_string_view > strView = str.operator std::basic_string_view >(); std::operator<<(std::operator<<(std::cout, "strView : "), std::basic_string_view >(strView)).operator<<(std::endl); return 0; diff --git a/tests/TemplateArgumentsTest.expect b/tests/TemplateArgumentsTest.expect index 5ca1fd4e..ee5877d5 100644 --- a/tests/TemplateArgumentsTest.expect +++ b/tests/TemplateArgumentsTest.expect @@ -92,7 +92,7 @@ int main() int result = 34; Log("Hello World %s\n", "nothing"); Log("And the number is %d\n", result); - std::basic_string, std::allocator > test = std::basic_string, std::allocator >{"Hello"}; + std::basic_string, std::allocator > test = std::basic_string, std::allocator >{"Hello", std::allocator()}; Log("%s\n", test); return 0; } diff --git a/tests/TemplatesWithAutoAndLambdaTest.expect b/tests/TemplatesWithAutoAndLambdaTest.expect index 3e7131ea..69d126bd 100644 --- a/tests/TemplatesWithAutoAndLambdaTest.expect +++ b/tests/TemplatesWithAutoAndLambdaTest.expect @@ -76,7 +76,7 @@ void print<' ', char[3], double, std::basic_string, int main() { - std::basic_string, std::allocator > str = std::basic_string, std::allocator >("world"); + std::basic_string, std::allocator > str = std::basic_string, std::allocator >("world", std::allocator()); print("hi", 7.5, str); return 0; } diff --git a/tests/TupeInRangeBasedForTest.expect b/tests/TupeInRangeBasedForTest.expect index cc56dba7..6400cc68 100644 --- a/tests/TupeInRangeBasedForTest.expect +++ b/tests/TupeInRangeBasedForTest.expect @@ -27,7 +27,7 @@ int main() std::vector, std::allocator >, int>, std::allocator, std::allocator >, int> > > & __range1 = tuples; std::__wrap_iter, std::allocator >, int> *> __begin1 = __range1.begin(); std::__wrap_iter, std::allocator >, int> *> __end1 = __range1.end(); - for(; std::operator!=(__begin1, __end1); __begin1.operator++()) { + for(; operator!=(__begin1, __end1); __begin1.operator++()) { std::tuple, std::allocator >, int> __operator15 = std::tuple, std::allocator >, int>(__begin1.operator*()); std::basic_string, std::allocator > && s = std::get<0UL>(static_cast, std::allocator >, int> &&>(__operator15)); int && n = std::get<1UL>(static_cast, std::allocator >, int> &&>(__operator15)); diff --git a/tests/TypeIdInTemplateTest.expect b/tests/TypeIdInTemplateTest.expect index 66e7c9db..3f20ebe9 100644 --- a/tests/TypeIdInTemplateTest.expect +++ b/tests/TypeIdInTemplateTest.expect @@ -10,7 +10,7 @@ class Foo public: inline std::basic_string, std::allocator > Get() { - std::basic_string, std::allocator > typeId = std::basic_string, std::allocator >{typeid(T).name()} /* NRVO variable */; + std::basic_string, std::allocator > typeId = std::basic_string, std::allocator >{typeid(T).name(), std::allocator()} /* NRVO variable */; return typeId; } @@ -25,7 +25,7 @@ class Foo public: inline std::basic_string, std::allocator > Get() { - std::basic_string, std::allocator > typeId = std::basic_string, std::allocator >{typeid(int).name()} /* NRVO variable */; + std::basic_string, std::allocator > typeId = std::basic_string, std::allocator >{typeid(int).name(), std::allocator()} /* NRVO variable */; return typeId; } diff --git a/tests/UsingDeclTest.expect b/tests/UsingDeclTest.expect index c6c52826..bcc42e85 100644 --- a/tests/UsingDeclTest.expect +++ b/tests/UsingDeclTest.expect @@ -130,7 +130,7 @@ namespace Test int main() { using std::string; - std::string str = std::string("Example"); + std::string str = std::string("Example", std::allocator()); D d = D(); using namespace std::string_literals; std::basic_string, std::allocator > str2 = std::operator""s("abc", 3UL); diff --git a/tests/VectorClassOperatorTest.expect b/tests/VectorClassOperatorTest.expect index c1f0c625..b9fa4467 100644 --- a/tests/VectorClassOperatorTest.expect +++ b/tests/VectorClassOperatorTest.expect @@ -3,10 +3,10 @@ int main() { std::vector > vec = std::vector >(); - for(std::__wrap_iter it = vec.begin(); std::operator!=(it, vec.end()); it.operator++()) { + for(std::__wrap_iter it = vec.begin(); operator!=(it, vec.end()); it.operator++()) { } - for(std::__wrap_iter it1 = vec.begin(); std::operator!=(it1, vec.end()); it1.operator++()) { + for(std::__wrap_iter it1 = vec.begin(); operator!=(it1, vec.end()); it1.operator++()) { } return 0; diff --git a/tests/p0614Test.expect b/tests/p0614Test.expect index 6e6141ae..1f50abf4 100644 --- a/tests/p0614Test.expect +++ b/tests/p0614Test.expect @@ -24,7 +24,7 @@ int main() const std::vector > & __range1 = thing.items(); std::__wrap_iter __begin1 = __range1.begin(); std::__wrap_iter __end1 = __range1.end(); - for(; !std::operator==(__begin1, __end1); __begin1.operator++()) { + for(; !operator==(__begin1, __end1); __begin1.operator++()) { const int & x = __begin1.operator*(); } diff --git a/tests/p0780_2Test.cerr b/tests/p0780_2Test.cerr index 1651349c..60ea7dca 100644 --- a/tests/p0780_2Test.cerr +++ b/tests/p0780_2Test.cerr @@ -14,8 +14,8 @@ 38 | inline constexpr invoke_result_t operator()() const | ^~~~~~~~~~~~~~~ | std::invoke_result_t -... invoke.h:387:1: note: 'std::invoke_result_t' declared here - 387 | using invoke_result_t = __invoke_result_t<_Fn, _Args...>; +... invoke.h:395:1: note: 'std::invoke_result_t' declared here + 395 | using invoke_result_t = __invoke_result_t<_Fn, _Args...>; | ^ .tmp.cpp:51:10: error: no viable conversion from returned value of type '__lambda_15_12' to function return type 'int' 51 | return __lambda_15_12{std::move(f), std::move(__args1), std::move(__args2), std::move(__args3), std::move(__args4)}; diff --git a/version.h.in b/version.h.in index f6973a75..fbf7c9d7 100644 --- a/version.h.in +++ b/version.h.in @@ -1,7 +1,7 @@ #ifndef INSIGHTS_VERSION_H #define INSIGHTS_VERSION_H -#define INSIGHTS_VERSION "21.1" +#define INSIGHTS_VERSION "23.1" #define GIT_REPO_URL "@GIT_REPO_URL@" #define GIT_COMMIT_HASH "@GIT_COMMIT_HASH@"