tree-sitter/script/format

8 lines
185 B
Text
Raw Normal View History

2014-07-20 21:42:46 -07:00
#!/usr/bin/env bash
DIRS="${*:-src include}"
find $DIRS \
2014-07-20 21:42:46 -07:00
-name '*.c' -or -name '*.cc' -or -name '*.h' | \
xargs clang-format -i -style=file