Skip to content

Commit 19eec55

Browse files
authored
Require clang-format-19 (#94)
1 parent 9523cf2 commit 19eec55

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

check-code-style/check_style.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ check_clang_format() {
9494
# The command `clang-format --version` behaves differently on different OS.
9595
# For example, on Ubuntu this command will message us out with the following
9696
# content:
97-
# Ubuntu clang-format version 12.0.0-3ubuntu1~20.04.4
98-
# On macos:
99-
# clang-format version 13.0.0
97+
# Ubuntu clang-format version 19.1.7 (++20250114103238+cd708029e0b2-1~exp1~20250114103342.77)
10098
# That's why commands like `cut`, `head`, `tr` are not the way we wanna grab
10199
# the version's numbers.
102100

@@ -106,9 +104,10 @@ check_clang_format() {
106104
# Retain the part after the `version ` (including space too).
107105
clang_format_version_found=${clang_format_version_output##*version }
108106

109-
# Retain the part before `-`.
110-
clang_format_version_found=${clang_format_version_found%-*}
111-
clang_format_version_required="13.0.0"
107+
# Retain the part before ` `.
108+
clang_format_version_found=${clang_format_version_found% *}
109+
110+
clang_format_version_required="19.1.7"
112111

113112
check_version ${clang_format_version_found} ${clang_format_version_required}
114113

0 commit comments

Comments
 (0)