You should be able to use `bear` (https://github.com/rizsotto/Bear). I have it installed via my package manager. After a `./waf clean`, run `bear -- ./waf` to generate compile_commands.json. Then you should be able to run `cppcheck --project=compile_commands.json`. Alex