Skip to content

Commit

Permalink
feat: add format_files script (#3)
Browse files Browse the repository at this point in the history
add format_files script

Signed-off-by: Ricardo Benitez <benitezc.ricardo@gmail.com>
  • Loading branch information
ricardobtez authored Jan 22, 2024
1 parent 221c313 commit 95cf046
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions format_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

echo "Formatting include/*, src/*, test/*"
find include -iname *.hpp -o -iname *.h -o -iname *.cpp | xargs clang-format-15 -i
find src -iname *.hpp -o -iname *.h -o -iname *.cpp | xargs clang-format-15 -i
find test -iname *.hpp -o -iname *.h -o -iname *.cpp | xargs clang-format-15 -i

0 comments on commit 95cf046

Please # to comment.