[style] change to clang-format-6.0 (#3222)

This commit is contained in:
Jonathan Hui
2018-10-29 12:38:06 -07:00
parent dcc9b7e249
commit 5e4be05907
5 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ install_packages_apt()
sudo apt-get install gcc-arm-embedded
# add clang-format for pretty
sudo apt-get install clang-format-5.0
sudo apt-get install clang-format-6.0
}
install_packages_opkg()
+5 -5
View File
@@ -27,25 +27,25 @@
# POSSIBILITY OF SUCH DAMAGE.
#
CLANG_FORMAT_VERSION="clang-format version 5.0"
CLANG_FORMAT_VERSION="clang-format version 6.0"
die() {
echo " *** ERROR: " $*
exit 1
}
if which clang-format-5.0 > /dev/null; then
alias clang-format=clang-format-5.0
if which clang-format-6.0 > /dev/null; then
alias clang-format=clang-format-6.0
elif which clang-format > /dev/null; then
case "$(clang-format --version)" in
"$CLANG_FORMAT_VERSION"*)
;;
*)
die "clang-format 5.0 required"
die "clang-format 6.0 required"
;;
esac
else
die "clang-format 5.0 required"
die "clang-format 6.0 required"
fi
clang-format $@