Knight is a static analysis tool for c/c++ programs written in C++20.
knight dependencies:
- cmake
- llvm/clang(>=18 is best)
You can install llvm by your package manager
$ apt install llvm # for Ubuntu
$ brew install llvm # for Homebrew
$ cd knight
$ cmake -DLLVM_BUILD_DIR=/path/to/llvm/build -B path-to-build -S .
$ cmake --build path-to-build -j$(nproc)
$ path-to-build/bin/knight --help # for usages
Note: Knight only support C++20, so you need to use a compiler support C++20.
See TROUBLESHOOTING.md for more details.
Contributions are welcome, See CONTRIBUTING.md for more details
Knight is MIT-licensed, see LICENSE for more details