Easy Steps to Install clang-format on Mac
Package Information:
Name: clang-format
Use: Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
URL: https://clang.llvm.org/docs/ClangFormat.html
Installation Steps:
- Open up your Terminal.
- Copy and execute below command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- Install clang-format using brew
brew install clang-format
clang-format is ready to use now!