scripts: Support clang-format12-14

Signed-off-by: utzcoz <utzcoz@outlook.com>
This commit is contained in:
utzcoz 2023-03-25 15:50:06 +08:00 committed by Jakob Bornecrantz
parent c1f4f41dd7
commit 0da76e64d3

View file

@ -8,7 +8,7 @@
set -e set -e
if [ ! "${CLANGFORMAT}" ]; then if [ ! "${CLANGFORMAT}" ]; then
for fn in clang-format-11 clang-format-10 clang-format-9 clang-format-8 clang-format-7 clang-format-6.0 clang-format; do for fn in clang-format-14 clang-format-13 clang-format-12 clang-format-11 clang-format-10 clang-format-9 clang-format-8 clang-format-7 clang-format-6.0 clang-format; do
if command -v $fn > /dev/null; then if command -v $fn > /dev/null; then
CLANGFORMAT=$fn CLANGFORMAT=$fn
break break