dncurrency/ci/clang-format-all.sh
theohax c9236bbf03
Fix cmake-format-all.sh script + friendlier xargs usage (#3470)
* Fix calling xargs on OSX

* Fix cmake-format-all.sh script

* Design ci/cmake-format-all.sh and ci/check-cmake-format.sh to be consistent with the clang ones
2021-09-29 16:26:38 +03:00

14 lines
430 B
Bash
Executable file

#!/usr/bin/env bash
set -e
source "$(dirname "$BASH_SOURCE")/detect-clang-format.sh"
source "$(dirname "$BASH_SOURCE")/common.sh"
find "$REPO_ROOT/nano" -iname "*.h" \
-o \
-iname "*.hpp" \
-o \
-iname "*.cpp" \
| xargs -I sourceFile \
"$CLANG_FORMAT" -i -style=file "sourceFile"