diff options
Diffstat (limited to 'FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/scripts/format')
-rwxr-xr-x | FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/scripts/format | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/scripts/format b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/scripts/format new file mode 100755 index 000000000..a07c363da --- /dev/null +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/scripts/format @@ -0,0 +1,8 @@ +#!/bin/sh + +CLANG_FORMAT=clang-format-6.0 + +TOP_LEVEL=$(git rev-parse --show-toplevel) + +# Run clang-format in-place on all *.c and *.h files in the repository +cd $TOP_LEVEL && $CLANG_FORMAT -i $(git ls-tree -r HEAD --name-only | grep -E "^\S+\.[ch]$") |