Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
roboticvedant authored Oct 6, 2024
1 parent ce0b622 commit c4bf9ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/clang_format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Run clang-format on all .c, .cpp, .h, and .hpp files in the specified directory
SRC_DIR="motor_controller/motor_controller/Src"
find $SRC_DIR -regex '.*\.\(c\|cpp\|h\|hpp\)' -exec clang-format -i {} \;

# Add a success message
echo "Code formatted using clang-format in $SRC_DIR."

0 comments on commit c4bf9ad

Please sign in to comment.