Skip to content
Cisco edited this page Sep 24, 2025 · 1 revision
  • norm is based upon LLVM Coding standards
  • there is a .clang.format to customize options
  • make format-check to check that .cpp and .hpp files respect the norm
  • make format to automatically format them

Installing clang-format on 42 Ubuntu

as there is no sudo, we can install on ~/local/bin and add this to the path

mkdir -p ~/local/bin;
wget -qO ~/local/bin/clang-format https://github.com/cpp-linter/clang-tools-static-binaries/releases/latest/download/clang-format-20_linux-amd64;
chmod a+x ~/local/bin/clang-format

## adding to the path if needed
export PATH=$PATH:~/local/bin

Source lindev

Clone this wiki locally