mirror-chatterino2/tools/clang-format-all.sh
2019-09-25 12:55:06 +02:00

7 lines
223 B
Bash
Executable file

#!/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