Add bash script to run clang format on all files

This commit is contained in:
Rasmus Karlsson
2018-07-03 15:19:25 +00:00
parent 3248263523
commit b73f65fa20
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
read -p "Are you sure you want to run clang-format on all files in src/? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
find src/ -iname "*.hpp" -o -iname "*.cpp" -exec clang-format -i {} \;
fi