Sha256: a874d0cc0bfc231779030bc96eef32a3f2f6cfef259d2d5c76dd770fefde34f1

Contents?: true

Size: 499 Bytes

Versions: 34

Compression:

Stored size: 499 Bytes

Contents

#!/bin/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 -type f \( -name '*.h' -o -name '*.c' \)`
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

34 entries across 12 versions & 1 rubygems

Version Path
aws-crt-0.1.6 aws-crt-ffi/crt/aws-c-auth/format-check.sh
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-auth/format-check.sh
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-io/format-check.sh
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-event-stream/format-check.sh
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-event-stream/format-check.sh
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-io/format-check.sh
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-auth/format-check.sh
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-event-stream/format-check.sh
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-io/format-check.sh
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-auth/format-check.sh
aws-crt-0.1.1.pre native/crt/aws-c-io/format-check.sh
aws-crt-0.1.1.pre native/crt/aws-c-auth/format-check.sh
aws-crt-0.1.0.pre native/crt/aws-c-auth/format-check.sh
aws-crt-0.1.0.pre native/crt/aws-c-io/format-check.sh