mkdir build
cd build
cmake ..
make demo
../bin/demo
pip install pre-commit
pre-commit install
# this will install a pre-commit hook in .git/hooks, then using clang-format to check your code style
If you want to test if pre-commit work
git commit
If not work
pre-commit uninstall
pre-commit install
or contact me: zincsabian@gmail.com