diff --git a/contrib/scripts/clangFormatWholeProject.sh b/contrib/scripts/clangFormatWholeProject.sh new file mode 100755 index 00000000..0b984371 --- /dev/null +++ b/contrib/scripts/clangFormatWholeProject.sh @@ -0,0 +1,10 @@ +# This script is making the following assumptions: +# - 1) You are running the script from the project root directory +# - 2) clang-format is in your $PATH + +find src/ -iname *.h* -o -iname *.c* | xargs clang-format -i +find include/ -iname *.h* -o -iname *.c* | xargs clang-format -i +find samples/ -iname *.h* -o -iname *.c* | xargs clang-format -i +find unitTests/ -iname *.h* -o -iname *.c* | xargs clang-format -i +find app/ -iname *.h* -o -iname *.c* | xargs clang-format -i +find fuzz/ -iname *.h* -o -iname *.c* | xargs clang-format -i