/clint

Primary LanguageC

[WIP] Clint

The C(wannabe)lint(er). Extract compiler diagnostics from any compiler with flags extracted from a compilation database.

Dependencies

Installation

meson setup build meson install -C build

Running

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.

How it works

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.

Acknowledges

Based on gccdiag