Skip to content

Commit

Permalink
Add code formatting script
Browse files Browse the repository at this point in the history
  • Loading branch information
kzampog committed Jul 18, 2023
1 parent ea05cb2 commit f5226c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
# This is meant to be run from the repo root.
find . -regex '.*\.\(cpp\|hpp\|cu\|c\|h\)' -not -path "./include/cilantro/3rd_party/*" -not -path "./src/3rd_party/*" -not -path "./build/*" -exec clang-format -i {} \;

0 comments on commit f5226c2

Please sign in to comment.