diff --git a/format.sh b/format.sh index d0c5c49..8c6a804 100755 --- a/format.sh +++ b/format.sh @@ -25,6 +25,9 @@ if ((major < required_major)) || ((minor < required_minor)) || ((patch < require exit 1 fi -find ./runtime -type f -path "./*.[ch]" | # Match all *.c and *.h files in ./runtime - grep --invert-match -E "./runtime/thirdparty/*|./runtime/tests/gocr/*|./runtime/tests/TinyEKF/*|./runtime/tests/CMSIS_5_NN/*|./runtime/tests/sod/*" | # Excluding those in the jsmn or http-parser submodules - xargs clang-format -i # And format them with clang-format +# Match all *.c and *.h files in ./runtime +# Excluding those in the jsmn or http-parser submodules +# And format them with clang-format +find ./runtime -type f -path "./*.[ch]" | + grep --invert-match -E "./runtime/thirdparty/*|./runtime/tests/gocr/*|./runtime/tests/TinyEKF/*|./runtime/tests/CMSIS_5_NN/*|./runtime/tests/sod/*|**/thirdparty/*" | + xargs clang-format -i