We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a8272 commit cab898bCopy full SHA for cab898b
.travis.yml
@@ -18,7 +18,9 @@ jobs:
18
clang-format-7 --version
19
# build a pathspec that excludes the files in .clang-format-ignore
20
while read file ; do echo EXCLUDES+="':(top,exclude)$file' " ; done < .clang-format-ignore
21
+ echo "commit range: ${TRAVIS_COMMIT_RANGE}"
22
echo "Checking for formatting errors introduced since ${TRAVIS_COMMIT_RANGE%...*}"
23
+ exit 1
24
git-clang-format-7 --binary clang-format-7 "${TRAVIS_COMMIT_RANGE%...*}" -- $EXCLUDES
25
git diff > formatted.diff
26
if [[ -s formatted.diff ]] ; then
0 commit comments