mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
4161793d19
Solution: add clang-format to cmake, and add another travis-ci build type
15 lines
313 B
Bash
15 lines
313 B
Bash
#!/bin/sh
|
|
FAILED=0
|
|
IFS=";"
|
|
FILES="@ALL_SOURCE_FILES@"
|
|
IDS=$(echo -en "\n\b")
|
|
for FILE in $FILES
|
|
do
|
|
@CLANG_FORMAT@ -style=file -output-replacements-xml "$FILE" | grep "<replacement " >/dev/null &&
|
|
{
|
|
echo "$FILE is not correctly formatted"
|
|
FAILED=1
|
|
}
|
|
done
|
|
if [ "$FAILED" -eq "1" ] ; then exit 1 ; fi
|