Add directory argument to format script
This commit is contained in:
parent
9d87bc4517
commit
8bfaa5ffc3
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
find \
|
||||
src include \
|
||||
DIRS="${*:-src include}"
|
||||
|
||||
find $DIRS \
|
||||
-name '*.c' -or -name '*.cc' -or -name '*.h' | \
|
||||
xargs clang-format -i -style=file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue