Skip to content

Commit 0641a5f

Browse files
committed
Add bash script to format whole project
1 parent c0aadda commit 0641a5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This script is making the following assumptions:
2+
# - 1) You are running the script from the project root directory
3+
# - 2) clang-format is in your $PATH
4+
5+
find src/ -iname *.h* -o -iname *.c* | xargs clang-format -i
6+
find include/ -iname *.h* -o -iname *.c* | xargs clang-format -i
7+
find samples/ -iname *.h* -o -iname *.c* | xargs clang-format -i
8+
find unitTests/ -iname *.h* -o -iname *.c* | xargs clang-format -i
9+
find app/ -iname *.h* -o -iname *.c* | xargs clang-format -i
10+
find fuzz/ -iname *.h* -o -iname *.c* | xargs clang-format -i

0 commit comments

Comments
 (0)