gri3-wm/travis/check-formatting.sh

7 lines
171 B
Bash
Raw Normal View History

#!/bin/sh
set -e
set -x
clang-format-3.8 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)