gri3-wm/travis/check-formatting.sh

3 lines
155 B
Bash
Executable File

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