- Click here to download the latest version of
llvm
for windows. - Run the installer and follow the instructions.
- When prompted to choose to link to the system
PATH
skip this step,link_llvm.bat
will do this for you. - Once done run
link_llvm.bat
as administrator to linkclang-format
to the systemPATH
.
- Run the following commands to install
clang-format
on your system:
sudo wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
sudo apt-get update
sudo apt-get install -y clang-format-16
- Ensure you have Homebrew installed.
- Run the following command to install
clang-format
on your system:
brew install clang-format
- Open the root project folder in Visual Studio.
- Ensure you are at the root of the project.
- Open the terminal in the IDE (
Ctrl + `
by default) or press "View" and then "Terminal" in the menu bar. - Copy and paste the following command into the terminal depending on your operating system:
- Windows:
.\scripts\format\format_all.ps1
- OSX
./scripts/format/format_all.sh
- Windows:
- Open the root project folder in your terminal.
- Copy and paste the following command into the terminal depending on your os and press enter.
- Windows:
.\scripts\format\format_all.ps1
- Note: If you do not have your
ExecutionPolicy
set toRemoteSigned
orUnrestricted
the powershell script will not work. Run.\scripts\win\resolve_deps.bat
to fix this.
- Note: If you do not have your
- OSX / Linux:
./scripts/format/format_all.sh
- Windows: