本文记录MAC上安装clang-format 3.8.0的具体步骤: 打开MAC的终端,运行:
mkdir -p /usr/local/Homebrew/Library/Taps/yiwang/homebrew-yiwang
下载链接里的clang-format@38.rb
文件到/usr/local/Homebrew/Library/Taps/yiwang/homebrew-yiwang/
文件夹下。
brew install clang-format@38
sudo cp /usr/local/Cellar/clang-format@38/3.8.0/bin/clang-format /usr/local/bin/clang-format