Skip to content

Commit 24b3aaf

Browse files
authored
[UR] Bump clang-format to 19 to match intel/llvm (#17167)
The clang-format used as part of the CI jobs and code generation has been bumped to match the same version used in intel/llvm.
1 parent b183751 commit 24b3aaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

unified-runtime/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ endif()
251251

252252
# Check if clang-format (in correct version) is available for Cpp code formatting.
253253
if(UR_FORMAT_CPP_STYLE)
254-
find_program(CLANG_FORMAT NAMES clang-format-18 clang-format-18.1 clang-format)
254+
find_program(CLANG_FORMAT NAMES clang-format-19 clang-format-19.1 clang-format)
255255

256256
if(CLANG_FORMAT)
257257
get_program_version_major_minor(${CLANG_FORMAT} CLANG_FORMAT_VERSION)
258258
message(STATUS "Found clang-format: ${CLANG_FORMAT} (version: ${CLANG_FORMAT_VERSION})")
259259

260-
set(CLANG_FORMAT_REQUIRED "18.1")
260+
set(CLANG_FORMAT_REQUIRED "19.1")
261261
if(NOT (CLANG_FORMAT_VERSION VERSION_EQUAL CLANG_FORMAT_REQUIRED))
262262
message(FATAL_ERROR "required clang-format version is ${CLANG_FORMAT_REQUIRED}")
263263
endif()

unified-runtime/third_party/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ breathe==4.33.1
66
bs4==0.0.1
77
certifi==2024.07.04
88
chardet==3.0.4
9-
clang-format==18.1.7
9+
clang-format==19.1.6
1010
colorama==0.4.1
1111
docutils==0.15.2
1212
exhale==0.3.0

0 commit comments

Comments
 (0)