Fix clang-format only reformatting .cpp files

This commit is contained in:
Leon Richardt 2019-09-24 23:02:00 +02:00
parent 5871414e6b
commit 0e923b1e33

View file

@ -3,5 +3,5 @@
read -p "Are you sure you want to run clang-format on all files in src/? (y/n) " -n 1 -r read -p "Are you sure you want to run clang-format on all files in src/? (y/n) " -n 1 -r
echo echo
if [[ $REPLY =~ ^[Yy]$ ]]; then if [[ $REPLY =~ ^[Yy]$ ]]; then
find src/ -iname "*.hpp" -o -iname "*.cpp" -exec clang-format -i {} \; find src/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \;
fi fi