|
|
|
@ -44,15 +44,15 @@ help() {
|
|
|
|
|
dry_run() {
|
|
|
|
|
find runtime \
|
|
|
|
|
\( -path "runtime/thirdparty" -o -path "runtime/tests/gocr" -o -path "runtime/tests/TinyEKF" -o -path "runtime/tests/CMSIS_5_NN" -o -path "runtime/tests/sod" -o -path "runtime/tests/**/thirdparty" \) -prune -false -o \
|
|
|
|
|
-type f \( -iname \*.h -o -iname \*.c -o -iname \*.s \) -print |
|
|
|
|
|
xargs clang-format -Werror -n -ferror-limit=0
|
|
|
|
|
-type f \( -iname \*.h -o -iname \*.c -o -iname \*.s \) -print \
|
|
|
|
|
| xargs clang-format -Werror -n -ferror-limit=0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
format() {
|
|
|
|
|
find runtime \
|
|
|
|
|
\( -path "runtime/thirdparty" -o -path "runtime/tests/gocr" -o -path "runtime/tests/TinyEKF" -o -path "runtime/tests/CMSIS_5_NN" -o -path "runtime/tests/sod" -o -path "runtime/tests/**/thirdparty" \) -prune -false -o \
|
|
|
|
|
-type f \( -iname \*.h -o -iname \*.c -o -iname \*.s \) -print |
|
|
|
|
|
xargs clang-format -i
|
|
|
|
|
-type f \( -iname \*.h -o -iname \*.c -o -iname \*.s \) -print \
|
|
|
|
|
| xargs clang-format -i
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
|