From 95a5bd146ae346c38d059f9ff16540d94677cac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=BChrig?= Date: Mon, 11 Oct 2021 17:45:37 +0200 Subject: [PATCH] Updating clang-format to V13 --- formatcode.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/formatcode.sh b/formatcode.sh index 9a0c133..9995b88 100755 --- a/formatcode.sh +++ b/formatcode.sh @@ -19,10 +19,15 @@ if [[ $OS = "Linux" || $OS = "Darwin" ]] ; then fi # Discover clang-format -if type clang-format-8 2> /dev/null ; then - CLANG_FORMAT=clang-format-8 +if type clang-format-13 2> /dev/null ; then + CLANG_FORMAT=clang-format-13 else CLANG_FORMAT=clang-format + V=$(clang-format --version) + if [[ $V != *13.0* ]] ; then + echo "warning: clang-format is not 13.0 (returned ${V})" + #exit 1 + fi fi find . -type d \( -path ./deps \