Skip to content

Commit

Permalink
ci: clang 18
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed Sep 10, 2024
1 parent 62f6ccc commit 67cd43d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-llvm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
version:
description: 'LLVM version'
required: false
default: 16
default: 18
packages:
description: 'Packages to install'
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:
cancel-in-progress: true

env:
LLVM_VERSION: 16
LLVM_VERSION: 18
GCC_VERSION: 12

jobs:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ gtest_discover_tests(ppr-test)
################################
# clang-format check
################################
find_program(CLANG_FORMAT_COMMAND NAMES clang-format clang-format-16)
find_program(CLANG_FORMAT_COMMAND NAMES clang-format clang-format-18)
add_custom_target(ppr-format-check
COMMAND find
${CMAKE_CURRENT_SOURCE_DIR}/src
Expand Down
30 changes: 15 additions & 15 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
}
},
{
"name": "clang-16-preset",
"name": "clang-18-preset",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-16",
"CMAKE_CXX_COMPILER": "clang++-16",
"CMAKE_C_COMPILER": "clang-18",
"CMAKE_CXX_COMPILER": "clang++-18",
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
"CMAKE_EXE_LINKER_FLAGS": "-lc++abi"
}
Expand Down Expand Up @@ -64,32 +64,32 @@
}
},
{
"name": "clang-16-release",
"displayName": "Clang 16 Release",
"name": "clang-18-release",
"displayName": "Clang 18 Release",
"inherits": [
"clang-16-preset",
"clang-18-preset",
"base-preset"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "clang-16-debug",
"displayName": "Clang 16 Debug",
"name": "clang-18-debug",
"displayName": "Clang 18 Debug",
"inherits": [
"clang-16-preset",
"clang-18-preset",
"base-preset"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "clang-16-tidy",
"displayName": "Clang 16 Tidy",
"name": "clang-18-tidy",
"displayName": "Clang 18 Tidy",
"inherits": [
"clang-16-preset",
"clang-18-preset",
"base-preset"
],
"cacheVariables": {
Expand All @@ -98,10 +98,10 @@
}
},
{
"name": "clang-16-sanitizer",
"displayName": "Clang 16 Sanitizer",
"name": "clang-18-sanitizer",
"displayName": "Clang 18 Sanitizer",
"inherits": [
"clang-16-preset",
"clang-18-preset",
"base-preset"
],
"cacheVariables": {
Expand Down
2 changes: 1 addition & 1 deletion cmake/clang-tidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(NOT "${RELATIVE_SOURCE_DIR}" MATCHES ".+/$")
set(RELATIVE_SOURCE_DIR "${RELATIVE_SOURCE_DIR}/")
endif()

find_program(CLANG_TIDY_COMMAND NAMES clang-tidy-16 clang-tidy)
find_program(CLANG_TIDY_COMMAND NAMES clang-tidy-18 clang-tidy)
if (NOT CLANG_TIDY_COMMAND)
message(FATAL_ERROR "CMake_RUN_CLANG_TIDY is ON but clang-tidy is not found!")
endif ()
Expand Down

0 comments on commit 67cd43d

Please sign in to comment.