Simple http/1.1 (bis) server implemented in c++ for 42 school cursus
- Install llvm
- Debian / Ubuntu :
sudo apt update && sudo apt install clang-format clang-tidy
- Fedora / centOS :
sudo dnf upgrade && sudo dnf install llvm
- (Optional) Usage - automatic
- Install Trunk.io vscode plugin :
ext install Trunk.io
- Install linter deps :
trunk install
- Check (already auto in .vscode/settings) :
trunk check
- Usage - manual
- Format all files :
find . -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.tpp" | xargs clang-format -i
- Static analysis :
find . -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.tpp" | xargs clang-tidy -config=.clang-tidy