On Fri, Feb 17, 2017 at 4:35 PM, Bruno Kuhn <
bruno....@gmail.com> wrote:
> I found a example in the internet how to use clang for code analysis with
> ninja scan-build. Is there a way to use cppcheck instead?
There is no builtin support but it is easy to do your own. It is
mostly a matter of deciding your arguments and then doing something
like this:
run_target('cppcheck', command : ['cppcheck', meson.source_root(),
<extra args>])
If you want to scan only a subdirectory rather than everything you can
build a path to your chose dir with join_paths(meson.source_root(),
'src') or equivalent.