File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 55ROOT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /.. && pwd)
66cd " $ROOT_DIR "
77
8- find . -type f \( \
9- -name " *.c" -o -name " *.cpp" \
10- -o -name " *.h" -o -name " *.hpp" \
11- -o -name " *.cu" -o -name " *.cuh" \
12- \) \
13- -not -path " */external/*" \
14- -not -path " */build/*" \
15- -not -path " */.tox/*" \
16- -exec clang-format --dry-run --Werror {} \;
8+ git ls-files ' *.cpp' ' *.c' ' *.hpp' ' *.h' ' *.cu' ' *.cuh' | xargs -L 1 clang-format --dry-run --Werror
Original file line number Diff line number Diff line change 55ROOT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " /.. && pwd)
66cd " $ROOT_DIR "
77
8- find . -type f \( \
9- -name " *.c" -o -name " *.cpp" \
10- -o -name " *.h" -o -name " *.hpp" \
11- -o -name " *.cu" -o -name " *.cuh" \
12- \) \
13- -not -path " */external/*" \
14- -not -path " */build/*" \
15- -not -path " */.tox/*" \
16- -exec clang-format -i {} \;
8+ git ls-files ' *.cpp' ' *.c' ' *.hpp' ' *.h' ' *.cu' ' *.cuh' | xargs -L 1 clang-format -i
You can’t perform that action at this time.
0 commit comments