Skip to content

Commit

Permalink
[format.sh] Alternate extensions for C(++) files (pytorch#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmaher authored Feb 7, 2019
1 parent 2a37c5a commit 2f4b806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ print_usage() {
fix_format() {
find lib tests/unittests/ tools/ include examples \
-name \*.h -print0 \
-o -name \*.hpp -print0 \
-o -name \*.c -print0 \
-o -name \*.cc -print0 \
-o -name \*.cpp -print0 \
-o -name \*.cl -print0 \
| xargs -0 -P8 -n1 $CLANG_COMMAND -i;
Expand Down

0 comments on commit 2f4b806

Please sign in to comment.