File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments