The C(wannabe)lint(er). Extract compiler diagnostics from any compiler with flags extracted from a compilation database.
- Meson build system.
- Ninja for building.
- Json-c for JSON parsing.
- Unity for unit testing.
- A c compiler
meson setup build meson install -C build
You need a compile_commands.json
in your project root. Clint will search for a compilation
database in the current and parent directories. Run clint file.c
and it should
output compiler warnings for the file.
Clint searches the compilation database for the file, tokenises it (splits it into words) and replaces the command output with /dev/null. It then runs the command and prints warnings and errors.
Based on gccdiag