diff --git a/clang_format.sh b/clang_format.sh deleted file mode 100755 index 2d834b515d..0000000000 --- a/clang_format.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# cspell: ignore clangf -modified=$1 -dir=`pwd` -clangf=clang-format-10 -clangf=clang-format -if [ "$1" = "--all" ] -then - modified=`git status|egrep "modified|new file"|egrep "(cpp|h)$" | sed -E -e 's/modified://' -e 's/new file://' -e 's/^[[:space:]]+//'` -fi -for i in $modified -do - basedir=$(dirname "$i") - file=$(basename "$i") - echo "$basedir $file" - cd $basedir - $clangf -style=file -i "$file" - cd $dir -done