[clang-format] accept different patch versions of clang-format (#10042)

Homebrew installation of clang-format (satisfying >14.0 requirement)
outputs the following version string:
```
Homebrew clang-format version 14.0.6
```

This change fixes the following error while running make-pretty:
```
 *** ERROR: Homebrew clang-format version 14.0.6; clang-format 14.0 required
```
This commit is contained in:
Suvesh Pratapa
2024-05-14 11:42:54 -04:00
committed by GitHub
parent f12785def6
commit a074684110

View File

@ -43,7 +43,7 @@ if command -v clang-format-14 >/dev/null; then
alias clang-format=clang-format-14
elif command -v clang-format >/dev/null; then
case "$(clang-format --version)" in
"$CLANG_FORMAT_VERSION"*) ;;
*"$CLANG_FORMAT_VERSION"*) ;;
*)
die "$(clang-format --version); clang-format 14.0 required"