add validation tools

This commit is contained in:
keita
2021-02-16 15:10:56 +09:00
parent 6fa7c457c0
commit f99ffa71b8
5 changed files with 67 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
. "$(dirname "$0")/isTopLevel.sh"
for f in $(git ls-files | grep -E '.*\.(cc|h)$'); do
echo "formatting ${f}"
clang-format -i "${f}"
done