[cfe-dev] Combining scan-build runs

Andrew Melo via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 23 09:15:11 PST 2015


Hello all,

I've been using clang's static analyzer to clean up some code and find
some particularly tricky bugs that have been haunting me for a while.
It's working great!

Our project is broken into multiple independent subprojects (each with
their own makefile, etc..), so when I run scan-build on each
subproject in sequence, a lot of the context gets lost when control
goes from projectA to projectB and back again. Is there a way to have
scan-build combine the ASTs from the different projects together to
give it the global view? We currently have:

projectA$ scan-build make
projectB$ scan-build make

Is there some way to have scan-build do something the equivalent of:

$ scan-build --combine projectA/scan-output projectB/scan-output

Thanks!
Andrew
-- 
--
Andrew Melo



More information about the cfe-dev mailing list