mirror of
https://github.com/espressif/openthread.git
synced 2026-11-02 04:23:06 +00:00
[clang-format] update to clang-format-10 (#5616)
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user