diff options
author | EuAndreh <eu@euandre.org> | 2021-06-06 08:20:23 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-06 08:20:23 -0300 |
commit | 1b839423face98b5253d74ffe7257871196ed6fe (patch) | |
tree | 576b9348de63458f3c7afef3240c24a010eae537 /aux/assert-clang-format.sh | |
parent | mv src/remembering.in src/remembering.sh (diff) | |
download | remembering-1b839423face98b5253d74ffe7257871196ed6fe.tar.gz remembering-1b839423face98b5253d74ffe7257871196ed6fe.tar.xz |
Remove assert-clang-format.sh
The default formatter uses spaces over tabs, and I can't get it to
override that.
The --style='{UseTab: Always}' should have done it, but it didn't work.
Diffstat (limited to 'aux/assert-clang-format.sh')
-rwxr-xr-x | aux/assert-clang-format.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/aux/assert-clang-format.sh b/aux/assert-clang-format.sh deleted file mode 100755 index cf3fbb4..0000000 --- a/aux/assert-clang-format.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -eu - -if [ "${1:-}" = '--fix-in-place' ]; then - find . -type f \( -name '*.h' -o -name '*.c' \) -exec clang-format -i {} \; - exit 0 -fi - -# shellcheck disable=2016 -find . -type f \( -name '*.h' -o -name '*.c' \) -exec sh -c ' - clang-format "$1" | diff - "$1" || { - echo "Unformatted C code. To fix it, run:" - echo " ./aux/assert-clang-format.sh --fix-in-place" - exit 1 - } -' _ {} + |