File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,7 @@ check_clang_format() {
94
94
# The command `clang-format --version` behaves differently on different OS.
95
95
# For example, on Ubuntu this command will message us out with the following
96
96
# 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)
100
98
# That's why commands like `cut`, `head`, `tr` are not the way we wanna grab
101
99
# the version's numbers.
102
100
@@ -106,9 +104,10 @@ check_clang_format() {
106
104
# Retain the part after the `version ` (including space too).
107
105
clang_format_version_found=${clang_format_version_output##* version }
108
106
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"
112
111
113
112
check_version ${clang_format_version_found} ${clang_format_version_required}
114
113
You can’t perform that action at this time.
0 commit comments