[clang-format] update to clang-format-10 (#5616)

This commit is contained in:
Jonathan Hui
2020-10-07 21:17:44 -07:00
committed by GitHub
parent 061806620a
commit 58b0486bcd
12 changed files with 45 additions and 46 deletions
+5 -5
View File
@@ -59,7 +59,7 @@ install_packages_apt()
echo 'Installing pretty tools useful for code contributions...'
# add clang-format for pretty
sudo apt-get --no-install-recommends install -y clang-format-6.0
sudo apt-get --no-install-recommends install -y clang-format-10
# add yapf for pretty
python3 -m pip install yapf==0.29.0 || echo 'WARNING: could not install yapf, which is useful if you plan to contribute python code to the OpenThread project.'
@@ -103,10 +103,10 @@ install_packages_brew()
echo 'Installing pretty tools useful for code contributions...'
# add clang-format for pretty
CLANG_FORMAT_VERSION="clang-format version 6.0"
command -v clang-format-6.0 || (command -v clang-format && (clang-format --version | grep -q "${CLANG_FORMAT_VERSION}")) || {
brew install llvm@6
sudo ln -s "$(brew --prefix llvm@6)/bin/clang-format" /usr/local/bin/clang-format-6.0
CLANG_FORMAT_VERSION="clang-format version 10"
command -v clang-format-10 || (command -v clang-format && (clang-format --version | grep -q "${CLANG_FORMAT_VERSION}")) || {
brew install llvm@10
sudo ln -s "$(brew --prefix llvm@6)/bin/clang-format" /usr/local/bin/clang-format-10
}
# add yapf for pretty