On Fri, Feb 23, 2018 at 6:02 PM, Todd Lindstrom <
tla...@gmail.com> wrote:
> Are there any regulations or best practices associated with building static
> analysis runs on a code-base?
>
> Our project uses Coverity - and it uses existing make or other build
> infrastructure and uses the coverity compiler instead of gcc/cross compiler.
> With this in mind - would I need to add another separate configuration with
> a different compiler setting and flags necessary for coverity to run?
>
> OR is there any long term plan for meson to be able to support static
> analysis directly (like the test feature)
Meson supports this in the same way as any other static analysis tool:
CC=/path/to/c-tool CXX=/path/to/cpp-tool meson <new_build_directory>
This provides for 90% of all use cases. If there are more complicated
steps that need to be taken we may consider adding support for that.
As an example we add a "ninja scan-build" target to run the analysis
and output the result in the private log directory.