Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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}")
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tests/ClassInlineInitTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

struct Test
{
std::basic_string<char, std::char_traits<char>, std::allocator<char> > s = std::basic_string<char, std::char_traits<char>, std::allocator<char> >{"333"};
std::basic_string<char, std::char_traits<char>, std::allocator<char> > s = std::basic_string<char, std::char_traits<char>, std::allocator<char> >{"333", std::allocator<char>()};
int x{2};
};

6 changes: 3 additions & 3 deletions tests/ClassOperatorHandler5Test.expect
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
std::basic_string<char, std::char_traits<char>, std::allocator<char> > trim(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > & input)
{
if(input.length() == 0) {
return std::basic_string<char, std::char_traits<char>, std::allocator<char> >("");
return std::basic_string<char, std::char_traits<char>, std::allocator<char> >("", std::allocator<char>());
}

std::basic_string<char, std::char_traits<char>, std::allocator<char> > final = std::basic_string<char, std::char_traits<char>, std::allocator<char> >(input);
Expand All @@ -13,7 +13,7 @@ std::basic_string<char, std::char_traits<char>, std::allocator<char> > trim(cons
}

if(i >= static_cast<int>(input.length())) {
return std::basic_string<char, std::char_traits<char>, std::allocator<char> >("");
return std::basic_string<char, std::char_traits<char>, std::allocator<char> >("", std::allocator<char>());
}

if(i > 0) {
Expand All @@ -30,7 +30,7 @@ std::basic_string<char, std::char_traits<char>, std::allocator<char> > trim(cons

int main()
{
std::basic_string<char, std::char_traits<char>, std::allocator<char> > x = std::basic_string<char, std::char_traits<char>, std::allocator<char> >{" ashj a a a aaa"};
std::basic_string<char, std::char_traits<char>, std::allocator<char> > x = std::basic_string<char, std::char_traits<char>, std::allocator<char> >{" ashj a a a aaa", std::allocator<char>()};
std::basic_string<char, std::char_traits<char>, std::allocator<char> > b = trim(x);
return 0;
}
4 changes: 2 additions & 2 deletions tests/EduCfrontTestLifeTime2.cerr
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions tests/EduCoroutineAllocFailureTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ struct __fun_intFrame
{
void (*resume_fn)(__fun_intFrame *);
void (*destroy_fn)(__fun_intFrame *);
std::__coroutine_traits_sfinae<generator<int> >::promise_type __promise;
std::coroutine_traits<generator<int> >::promise_type __promise;
int __suspend_index;
bool __initial_await_suspend_called;
std::suspend_always __suspend_40_14;
Expand All @@ -176,7 +176,7 @@ generator<int> fun<int>()
__f->__initial_await_suspend_called = false;

/* Construct the promise. */
new (&__f->__promise)std::__coroutine_traits_sfinae<generator<int> >::promise_type{};
new (&__f->__promise)std::coroutine_traits<generator<int> >::promise_type{};

/* Forward declare the resume and destroy function. */
void __fun_intResume(__fun_intFrame * __f);
Expand Down
4 changes: 2 additions & 2 deletions tests/EduCoroutineBinaryExprTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct __seqFrame
{
void (*resume_fn)(__seqFrame *);
void (*destroy_fn)(__seqFrame *);
std::__coroutine_traits_sfinae<generator>::promise_type __promise;
std::coroutine_traits<generator, int>::promise_type __promise;
int __suspend_index;
bool __initial_await_suspend_called;
int start;
Expand Down Expand Up @@ -108,7 +108,7 @@ generator seq(int start)
__f->start = std::forward<int>(start);

/* Construct the promise. */
new (&__f->__promise)std::__coroutine_traits_sfinae<generator>::promise_type{};
new (&__f->__promise)std::coroutine_traits<generator, int>::promise_type{};

/* Forward declare the resume and destroy function. */
void __seqResume(__seqFrame * __f);
Expand Down
4 changes: 2 additions & 2 deletions tests/EduCoroutineCaptureConstTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct __seqFrame
{
void (*resume_fn)(__seqFrame *);
void (*destroy_fn)(__seqFrame *);
std::__coroutine_traits_sfinae<generator>::promise_type __promise;
std::coroutine_traits<generator, const int &>::promise_type __promise;
int __suspend_index;
bool __initial_await_suspend_called;
const int & start;
Expand All @@ -103,7 +103,7 @@ generator seq(const int & start)
__f->start = std::forward<const int &>(start);

/* Construct the promise. */
new (&__f->__promise)std::__coroutine_traits_sfinae<generator>::promise_type{};
new (&__f->__promise)std::coroutine_traits<generator, const int &>::promise_type{};

/* Forward declare the resume and destroy function. */
void __seqResume(__seqFrame * __f);
Expand Down
4 changes: 2 additions & 2 deletions tests/EduCoroutineCaptureThisTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct ClassWithCoro
{
void (*resume_fn)(__coroFrame *);
void (*destroy_fn)(__coroFrame *);
std::__coroutine_traits_sfinae<my_resumable>::promise_type __promise;
std::coroutine_traits<my_resumable, ClassWithCoro &, int>::promise_type __promise;
int __suspend_index;
bool __initial_await_suspend_called;
int x;
Expand All @@ -91,7 +91,7 @@ inline my_resumable coro(int x)
__f->__this = this;

/* Construct the promise. */
new (&__f->__promise)std::__coroutine_traits_sfinae<my_resumable>::promise_type{*__f->__this, __f->x};
new (&__f->__promise)std::coroutine_traits<my_resumable, ClassWithCoro &, int>::promise_type{*__f->__this, __f->x};

/* Forward declare the resume and destroy function. */
void __coroResume(__coroFrame * __f);
Expand Down
4 changes: 2 additions & 2 deletions tests/EduCoroutineCoAwaitOperatorTest.expect
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct __gFrame
{
void (*resume_fn)(__gFrame *);
void (*destroy_fn)(__gFrame *);
std::__coroutine_traits_sfinae<my_future<int> >::promise_type __promise;
std::coroutine_traits<my_future<int> >::promise_type __promise;
int __suspend_index;
bool __initial_await_suspend_called;
std::suspend_always __suspend_51_16;
Expand All @@ -179,7 +179,7 @@ my_future<int> g()
__f->__initial_await_suspend_called = false;

/* Construct the promise. */
new (&__f->__promise)std::__coroutine_traits_sfinae<my_future<int> >::promise_type{};
new (&__f->__promise)std::coroutine_traits<my_future<int> >::promise_type{};

/* Forward declare the resume and destroy function. */
void __gResume(__gFrame * __f);
Expand Down
Loading
Loading