Skip to content

Commit 300e5f2

Browse files
Update check-format.sh to prefer clang-format-18 (#6890)
Co-authored-by: Amaury Chamayou <[email protected]>
1 parent 1e11a18 commit 300e5f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/check-format.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ else
2929
fi
3030

3131
CLANG_FORMAT=clang-format
32-
if [ -x "$(command -v clang-format-11)" ]; then
33-
CLANG_FORMAT=clang-format-11
32+
if [ -x "$(command -v clang-format-18)" ]; then
33+
CLANG_FORMAT=clang-format-18
3434
fi
3535

36+
echo "Using $(${CLANG_FORMAT} --version)"
37+
3638
file_name_regex="^[[:lower:]0-9_]+$"
3739
unformatted_files=""
3840
badly_named_files=""

0 commit comments

Comments
 (0)