mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 08:37:47 +00:00
[style] change to clang-format-6.0 (#3222)
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user