Relax version warning in clang-format precommit hook
Closes #60778.
(cherry picked from commit 9e66a947e4
)
This commit is contained in:
parent
e55e56b5fc
commit
40c9d01cb5
|
@ -77,7 +77,7 @@ fi
|
||||||
# To get consistent formatting, we recommend contributors to use the same
|
# To get consistent formatting, we recommend contributors to use the same
|
||||||
# clang-format version as CI.
|
# clang-format version as CI.
|
||||||
RECOMMENDED_CLANG_FORMAT_MAJOR_MIN="12"
|
RECOMMENDED_CLANG_FORMAT_MAJOR_MIN="12"
|
||||||
RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="13"
|
RECOMMENDED_CLANG_FORMAT_MAJOR_MAX="14"
|
||||||
|
|
||||||
if [ ! -x "$CLANG_FORMAT" ] ; then
|
if [ ! -x "$CLANG_FORMAT" ] ; then
|
||||||
message="Error: clang-format executable not found. Please install clang-format $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX."
|
message="Error: clang-format executable not found. Please install clang-format $RECOMMENDED_CLANG_FORMAT_MAJOR_MAX."
|
||||||
|
|
Loading…
Reference in New Issue