Relax version warning in clang-format precommit hook

Closes #60778.

(cherry picked from commit 9e66a947e4ac67c12c24b94db155f4ffadc371d4)
This commit is contained in:
Rémi Verschelde 2022-05-05 13:39:28 +02:00 committed by Relintai
parent 9cbdec7d87
commit e439495ea4

View File

@ -77,7 +77,7 @@ fi
# To get consistent formatting, we recommend contributors to use the same
# clang-format version as CI.
RECOMMENDED_CLANG_FORMAT_MAJOR_MIN="12"
RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="13"
RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="14"
if [ ! -x "$CLANG_FORMAT" ] ; then
message="Error: clang-format executable not found. Please install clang-format $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX."