Requires clang-format version 19.1.x.
Install via apt:
sudo apt install clang-format-19After restarting the terminal, verify:
clang-format-19 --versionNote: should match LLVM 19.
Install via Homebrew:
brew install llvm@19Add to your ~/.zshrc:
# set clang-format to version 19
export PATH="$(brew --prefix llvm@19)/bin:$PATH"Restart the terminal and verify:
clang-format --versionInstall via scoop:
scoop install llvm@19.1.0Restart the terminal and verify:
clang-format --versionFrom the repository root, run:
elvish bin/format