Merge pull request #1337 from leon-richardt/clang-format-fix

Fix clang-format Only Reformatting .cpp Files
This commit is contained in:
pajlada 2019-09-25 03:56:45 -07:00 committed by GitHub
commit 4e48416600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
echo
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