From 0814de6371c4371b02ce46bbc1255d4343be97a5 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 2 May 2020 11:34:04 +0300 Subject: [PATCH] Added call to cmake-format --- scripts/format.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/format.sh b/scripts/format.sh index d1c36007..915c4887 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -3,10 +3,14 @@ cd "$(dirname "$0")"/.. pwd echo -n "Running dos2unix " -find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" +#find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" echo echo -n "Running clang-format " -find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'" +#find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'" +echo +echo -n "Running cmake-format " +find . -name "CMakeLists.txt" -o -name "*\.cmake"|grep -v bundled|xargs -I {} sh -c "cmake-format --line-width 120 --max-subgroups-hwrap 4 -i {}; echo -n '.'" echo +