format.sh (195B)
1 #!/bin/bash 2 # Format newly added files using clang-format 3 4 for i in $(git status | grep -v "deleted" | grep -Eo "(Problems|Templates).*\.cpp") 5 do 6 echo "Formating: $i" 7 clang-format -i $i 8 done