diff options
Diffstat (limited to 'scripts/format.sh')
| -rwxr-xr-x | scripts/format.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 00000000..f36943cd --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +THIS_PATH="$(realpath "$0")" +THIS_DIR="$(dirname "$THIS_PATH")" + +FILE_LIST="$(find "$THIS_DIR" | grep -E ".*(\.cc|\.c|\.h|\.inl)$")" + +echo -e "Files found to format = \n\"\"\"\n$FILE_LIST\n\"\"\"" + +clang-format --verbose -i --style=file $FILE_LIST |
