1
0
Fork 0
mirror of https://github.com/Chatterino/chatterino2.git synced 2024-11-21 22:24:07 +01:00
mirror-chatterino2/tools/clang-format-all.sh

8 lines
217 B
Bash
Raw Normal View History

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