Skip to content

Commit

Permalink
remove version check for clang-format,test=document_fix (#5004)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiegegege authored Dec 27, 2021
1 parent e035261 commit ebbe668
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .travis/codestyle/clang_format.hook
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
#!/bin/bash
set -e

readonly VERSION="3.8"

version=$(clang-format -version)

if ! [[ $version == *"$VERSION"* ]]; then
echo "clang-format version check failed."
echo "a version contains '$VERSION' is needed, but get '$version'"
echo "you can install the right version, and make an soft-link to '\$PATH' env"
exit -1
fi

clang-format $@

0 comments on commit ebbe668

Please sign in to comment.