Sha256: 142d9ad7fac7e07a24629dfc912584b3e37c14b4dacdc5e2c69395052874da91
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
#!/usr/bin/env bash if [[ -z $CLANG_FORMAT ]] ; then CLANG_FORMAT=clang-format fi if NOT type $CLANG_FORMAT 2> /dev/null ; then echo "No appropriate clang-format found." exit 1 fi FAIL=0 SOURCE_FILES=`find source include tests verification -type f \( -name '*.h' -o -name '*.c' -o -name '*.inl' \)` for i in $SOURCE_FILES do $CLANG_FORMAT -output-replacements-xml $i | grep -c "<replacement " > /dev/null if [ $? -ne 1 ] then echo "$i failed clang-format check." FAIL=1 fi done exit $FAIL
Version data entries
5 entries across 5 versions & 1 rubygems