Apply clang-format to source tree
[alexxy/gromacs.git] / admin / reformat_all.sh
index 889c683a1ee1290def5b2b590c1059a848e4da45..5748c91cc5af859330ed49b5ebd29a975da45f07 100755 (executable)
@@ -101,7 +101,7 @@ case "$action" in
         ;;
     clang-format)
         if [ -z "$CLANG_FORMAT" ] ; then
-            CLANG_FORMAT=clang-format
+            CLANG_FORMAT=clang-format-7
         fi
         if ! which "$CLANG_FORMAT" 1>/dev/null ; then
             echo "clang-format not found. Specify one with CLANG_FORMAT"
@@ -126,7 +126,7 @@ esac
 
 if [[ "$filter" == "default" ]] ; then
     if [[ "$action" == "clang-format" ]] ; then
-        filter=complete_formatting
+        filter=clangformat
     else
         filter=$action
     fi
@@ -146,7 +146,7 @@ case "$filter" in
         filter_re="(complete_formatting|clangformat)"
         ;;
     complete_formatting)
-        filter_re="(complete_formatting|clangformat|includesort|copyright)"
+        filter_re="(complete_formatting|clangformat)"
         ;;
     *)
         echo "Unknown filter mode: $filter"