
clang-format-3.8 is old enough to have vanished from Debian testing, which we use for our CI.
7 lines
171 B
Bash
Executable File
7 lines
171 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
clang-format-4.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|